Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to reset input value upon using v-model or ref #65

Open
richiemodefair opened this issue Dec 19, 2023 · 2 comments
Open

Unable to reset input value upon using v-model or ref #65

richiemodefair opened this issue Dec 19, 2023 · 2 comments

Comments

@richiemodefair
Copy link

this is the component in template

Clear

and inside the script

import EmojiPicker from "vue3-emoji-picker";
import "vue3-emoji-picker/css";

const clearInput = async () => {
console.log(textInput);
textInput.value = ''
}

result upon entering "hi" and clicking the "Clear" button
Screenshot 2023-12-19 at 5 58 24 PM

for the use of ref, it yields the same outcome

@hi5on9
Copy link

hi5on9 commented Feb 15, 2024

i have same problem
did you resolve it ?

@WanyoikeJ
Copy link

i have the same issue, i want to reset the input after sending the message,
At the moment am using this document.querySelector('.v3-emoji-picker-input').value = null; which works partially because if i pick emoji immediately after sending the message, it populates the input with the just sent message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants