Add bridge overflow menu controller.

This commit is contained in:
Denis Švara
2026-01-08 11:39:51 +01:00
parent 0a57e39060
commit d38c0c9817
@@ -0,0 +1,16 @@
import { BridgeComponent } from "@hotwired/hotwire-native-bridge"
export default class extends BridgeComponent {
static component = "overflow-menu"
connect() {
super.connect()
this.notifyBridgeOfConnect()
}
notifyBridgeOfConnect() {
this.send("connect", this.bridgeElement.getButton(), () => {
this.element.click()
})
}
}