Skip to content

Commit

Permalink
Fix focus when remaining work field is disabled
Browse files Browse the repository at this point in the history
In progress popover, when remaining work field is disabled, work field
gains focus instead.
  • Loading branch information
cbliard committed Aug 22, 2024
1 parent d1d3128 commit 74ffb49
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/forms/work_packages/pre_14_4_progress_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ def ensure_only_one_error_for_remaining_work_exceeding_work
end

def focused_field_by_selection(field)
field
if field == :remaining_hours && disabled_remaining_work_field?
:estimated_hours
else
field
end
end

def render_text_field(group,
Expand Down

0 comments on commit 74ffb49

Please sign in to comment.