Skip to content

Commit 2189098

Browse files
author
Lucas Sousa
committed
Update the dropdown controller to accept the strategy
1 parent e6f1932 commit 2189098

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
@@ -23,6 +23,7 @@ export default class extends Controller {
2323
computePosition(this.triggerTarget, this.contentTarget, {
2424
placement: this.optionsValue.placement || "top",
2525
middleware: [flip(), shift(), offset(8)],
26+
strategy: this.optionsValue.strategy || "absolute",
2627
}).then(({ x, y }) => {
2728
Object.assign(this.contentTarget.style, {
2829
left: `${x}px`,

0 commit comments

Comments
 (0)