We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 754ae6b commit 1dcd8c9Copy full SHA for 1dcd8c9
1 file changed
lib/ruby_ui/carousel/carousel.rb
@@ -22,7 +22,11 @@ def default_attrs
22
aria_roledescription: "carousel",
23
data: {
24
controller: "ruby-ui--carousel",
25
- ruby_ui__carousel_options_value: default_options.merge(@options).to_json
+ ruby_ui__carousel_options_value: default_options.merge(@options).to_json,
26
+ action: %w[
27
+ keydown.right->ruby-ui--carousel#scrollNext:prevent
28
+ keydown.left->ruby-ui--carousel#scrollPrev:prevent
29
+ ]
30
}
31
32
end
0 commit comments