Fix shop item popover staying open after click (#12921)

* don't refocus shopItem popover on click

* fix webpack compile error

* manually disable and enable popover

* clean up old changes
This commit is contained in:
Zach Bauer
2021-08-26 20:47:27 -04:00
committed by GitHub
parent 876a7b766c
commit 1a484b56ac
4 changed files with 30 additions and 0 deletions

View File

@@ -261,6 +261,12 @@ export default {
this.$root.$emit('bv::show::modal', 'buy-modal');
});
this.$root.$on('bv::modal::hidden', event => {
if (event.componentId === 'buy-modal') {
this.$root.$emit('buyModal::hidden', this.selectedItemToBuy.key);
}
});
this.$root.$on('selectMembersModal::showItem', item => {
this.selectedSpellToBuy = item;
this.$root.$emit('bv::show::modal', 'select-member-modal');