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

@@ -513,6 +513,12 @@ export default {
section: this.$t('shops'),
});
await this.$store.dispatch('worldState:getWorldState');
this.$root.$on('bv::modal::hidden', event => {
if (event.componentId === 'buy-quest-modal') {
this.$root.$emit('buyModal::hidden', this.selectedItemToBuy.key);
}
});
},
methods: {
questItems (category, sortBy, searchBy, hideLocked, hidePinned) {