Skip to content

Commit

Permalink
fix(textarea): merge data controllers from opts & autoresize
Browse files Browse the repository at this point in the history
  • Loading branch information
colinux committed Jun 20, 2024
1 parent f2669fb commit 9b2b9e3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/components/dsfr/input_errorable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,7 @@ def input_opts(other_opts = {})
})
end

if autoresize?
@opts.deep_merge!(data: { controller: 'autoresize' })
end
@opts.deep_merge!(data: { controller: token_list(@opts.dig(:data, :controller), 'autoresize' => autoresize?) })

@opts
end
Expand Down

0 comments on commit 9b2b9e3

Please sign in to comment.