Skip to content

Commit 1b31533

Browse files
Lucas Sousalsouoliveira
authored andcommitted
Update the dropdown controller to accept the strategy
1 parent 1558f3c commit 1b31533

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/ruby_ui/dropdown_menu/dropdown_menu_controller.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export default class extends Controller {
3232
computePosition(this.triggerTarget, this.contentTarget, {
3333
placement: this.optionsValue.placement || "top",
3434
middleware: [flip(), shift(), offset(8)],
35+
strategy: this.optionsValue.strategy || "absolute",
3536
}).then(({ x, y }) => {
3637
Object.assign(this.contentTarget.style, {
3738
left: `${x}px`,

0 commit comments

Comments
 (0)