-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(optionSelected): store selected menu option object directly in s…
…elect
- Loading branch information
1 parent
168f3d6
commit 01ef6ee
Showing
5 changed files
with
34 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
setTimeout(() => { | ||
document.querySelector('#valueAlert').addEventListener('selectedOption', () => { | ||
const menu = document.querySelector('#valueAlert auro-menu'); | ||
console.warn('Value selected:', menu.optionSelected.value); | ||
alert(`Value selected: ${menu.optionSelected.value}`); | ||
document.querySelector('#valueAlert').addEventListener('selectedOption', (evt) => { | ||
console.warn('Value selected:', evt.target.optionSelected.value); | ||
alert(`Value selected: ${evt.target.optionSelected.value}`); | ||
}); | ||
}, 500); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters