fix disabled state not applying
This commit is contained in:
parent
dd50bc8d16
commit
cc8480e8ea
2 changed files with 2 additions and 1 deletions
|
|
@ -124,6 +124,7 @@ export default {
|
|||
}
|
||||
},
|
||||
doActionWrap (button, close = () => {}) {
|
||||
if (this.button.interactive ? !this.button.interactive(this.funcArg) : false) return
|
||||
this.$emit('interacted')
|
||||
if (button.name === 'emoji') {
|
||||
this.$refs.picker.showPicker()
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
:title="$t(button.label(funcArg))"
|
||||
target="_blank"
|
||||
:tabindex="0"
|
||||
:disabled="buttonClass.disabled"
|
||||
:disabled="this.button.interactive ? !this.button.interactive(this.funcArg) : false"
|
||||
:href="getComponent(button) == 'a' ? button.link?.(funcArg) || remoteInteractionLink : undefined"
|
||||
@click="doActionWrap(button, outerClose)"
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue