Remove bridge nav-button controller.
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
import { BridgeComponent } from "@hotwired/hotwire-native-bridge"
|
||||
|
||||
export default class extends BridgeComponent {
|
||||
static component = "nav-button"
|
||||
|
||||
connect() {
|
||||
super.connect()
|
||||
|
||||
if (this.bridgeElement.enabled) {
|
||||
this.notifyBridgeOfConnect()
|
||||
}
|
||||
}
|
||||
|
||||
notifyBridgeOfConnect() {
|
||||
const navButton = this.bridgeElement.getButton()
|
||||
navButton.displayAsFormSubmitMenu = this.bridgeElement.shouldDisplayAsFormSubmitMenu()
|
||||
|
||||
this.send("connect", navButton, () => {
|
||||
this.element.click()
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user