Topic: mdb-input - handling keyboards events
Hi, How can I handle enter event for mdb-input?
I have this code and it doesn't work.
<mdb-input :label="$t('search.search_by')" v-model="localQuery.queryString" v-on:keyup.enter="search()"/>
But if I change mdb-input to input:
<input :label="$t('search.search_by')" v-model="localQuery.queryString" v-on:keyup.enter="search()"/>
everything works as expected.
Could you please help resolve this case? It's critical feature for me. Thank you.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Resolved
Specification of the issue
- User: Pro
- Premium support: No
- Technology: MDB Vue
- MDB Version: 6.5.0
- Device: Laptop
- Browser: Chrome, Safari
- OS: Mac OS
- Provided sample code: No
- Provided link: No
Related topics
enviaya pro commented 5 years ago
Hi, again.Sorry, I resolved this case:
<mdb-input :label="$t('search.search_by')" v-model="localQuery.queryString" @keydown.enter.native="search()"/>
Voon See Hong pro commented 4 years ago
this works. thank you!