-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Autofocus the clicked field upon the modal opening
In order to forward context to the modal, it will autofocus the clicked on field that triggered it to open.
- Loading branch information
1 parent
c339404
commit fc310bc
Showing
9 changed files
with
54 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
@import "work_packages/share/modal_body_component" | ||
@import "work_packages/share/invite_user_form_component" | ||
@import "work_packages/progress/progress_modal" | ||
@import "work_packages/progress/modal_body_component" | ||
@import "open_project/common/attribute_component" | ||
@import "filters_component" | ||
@import "projects/settings/project_custom_field_sections/index_component" |
9 changes: 5 additions & 4 deletions
9
app/components/work_packages/progress/modal_body_component.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
app/components/work_packages/progress/modal_body_component.sass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.progress-form | ||
.input--readonly | ||
background-color: unset !important | ||
border: none !important | ||
box-shadow: none !important |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<%= turbo_stream.update "work_package_progress_modal" do %> | ||
<%= render WorkPackages::Progress::ModalBodyComponent.new(@work_package) %> | ||
<%= render WorkPackages::Progress::ModalBodyComponent.new(@work_package, focused_field: params[:field]) %> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters