Update the card perma to support bridge buttonsa and the edit form state

This commit is contained in:
Jay Ohms
2026-01-09 13:09:51 -05:00
parent 9ac34f8882
commit b074a11e1d
5 changed files with 31 additions and 5 deletions
@@ -17,6 +17,7 @@ export default class extends BridgeComponent {
disconnect() {
super.disconnect()
this.notifyBridgeOfDisonnect()
this.submitObserver?.disconnect()
}
@@ -29,6 +30,10 @@ export default class extends BridgeComponent {
})
}
notifyBridgeOfDisonnect() {
this.send("disconnect")
}
observeSubmitTarget() {
this.submitObserver = new MutationObserver(() => {
this.send(this.submitTarget.disabled ? "submitDisabled" : "submitEnabled")