You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This would work only when you click the button and the cancel button. When you click the close button the deactive method in the BaseModal Mixin is called, and all it does is set the show to false.
Since the show and the modalVisible are meant to be in sync, the next time you click on the button modalVisible would remain true but show would be false.
if I change the click function of the button to toggle the state of modalVisible, I would have to click 2 times to get the modal back to visible.
The prop
visible
won't function properly once the deactive method has been calledSteps to reproduce
data() { return { modalVisible: false }
This would work only when you click the button and the cancel button. When you click the close button the deactive method in the BaseModal Mixin is called, and all it does is set the show to false.
Since the show and the modalVisible are meant to be in sync, the next time you click on the button modalVisible would remain true but show would be false.
if I change the click function of the button to toggle the state of modalVisible, I would have to click 2 times to get the modal back to visible.
The temporary fix is adding ref to the modal
Which makes the :visible prop somewhat useless.
The text was updated successfully, but these errors were encountered: