mirror of
https://github.com/He4eT/tabswitcher.git
synced 2026-05-05 01:17:23 +00:00
pages/search: input handlers: init
This commit is contained in:
parent
f5af3c1823
commit
499bd4dceb
2 changed files with 11 additions and 0 deletions
8
pages/search/modules/inputHandlers.js
Normal file
8
pages/search/modules/inputHandlers.js
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
export const attachInputHandlers = (store) => {
|
||||
const searchBox = document.getElementById('searchbox')
|
||||
const actionbox = document.getElementById('actionbox')
|
||||
|
||||
searchBox.addEventListener('input', (e) => {
|
||||
store.actions.updateQuery(e.target.value)
|
||||
})
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue