mirror of
https://github.com/nasa/openmct.git
synced 2025-06-22 09:08:43 +00:00
Allow tag cancelation (#6436)
* add e2e test * remove visual test as we can cover this with functional tests
This commit is contained in:
@ -150,7 +150,7 @@ export default {
|
||||
},
|
||||
hideOptions(newValue) {
|
||||
if (!newValue) {
|
||||
// adding a event listener when the hideOpntions is false (dropdown is visible)
|
||||
// adding a event listener when the hideOptions is false (dropdown is visible)
|
||||
// handleoutsideclick can collapse the dropdown when clicked outside autocomplete
|
||||
document.body.addEventListener('click', this.handleOutsideClick);
|
||||
} else {
|
||||
@ -242,7 +242,6 @@ export default {
|
||||
// dropdown is visible, this will collapse the dropdown.
|
||||
const clickedInsideAutocomplete = this.autocompleteInputAndArrow.contains(event.target);
|
||||
if (!clickedInsideAutocomplete && !this.hideOptions) {
|
||||
this.$emit('autoCompleteBlur');
|
||||
this.hideOptions = true;
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user