animation fix

This commit is contained in:
Henry Jameson 2025-01-20 01:58:17 +02:00
commit 797259cc9d
4 changed files with 9 additions and 11 deletions

View file

@ -62,7 +62,6 @@ export default {
'extra',
'status',
'funcArg',
'animationState',
'getClass',
'getComponent',
'doAction',
@ -73,6 +72,9 @@ export default {
EmojiPicker,
Popover
},
data: () => ({
animationState: false
}),
computed: {
buttonClass () {
return [
@ -116,7 +118,11 @@ export default {
if (button.name === 'emoji') {
this.$refs.picker.showPicker()
} else {
this.animationState = true
this.getComponent(button) === 'button' && this.doAction(button)
setTimeout(() => {
this.animationState = false
}, 500)
close()
}
}