We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1b31533 + 2189098 commit 8e2f9a1Copy full SHA for 8e2f9a1
lib/ruby_ui/dropdown_menu/dropdown_menu.rb
@@ -17,7 +17,7 @@ def default_attrs
17
{
18
class: [
19
"group/dropdown-menu",
20
- (@strategy == "absolute") ? "is-absolute" : "is-fixed"
+ (strategy == "absolute") ? "is-absolute" : "is-fixed"
21
],
22
data: {
23
controller: "ruby-ui--dropdown-menu",
@@ -26,5 +26,9 @@ def default_attrs
26
}
27
28
end
29
+
30
+ def strategy
31
+ @_strategy ||= @options[:strategy] || "absolute"
32
+ end
33
34
0 commit comments