-
Notifications
You must be signed in to change notification settings - Fork 331
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
Vue 3 Custom renderer state only changes on blur #870
Comments
Okay I think I found the issue here :D When using React, the In So if one wants to use
Maybe it would be nice to mention this in the docs somewhere because if you are not using React this may be a bit confusing. |
That's a great find @a47ae, thanks for sharing your solution. Does anything need to be updated on the documentation, or is the original issue coming from code you wrote on your side? |
Hey @Haroenv, I think it would be really great to have a Vue version of the creating a richt text box page. There is already a section on using If a Vue implementation is not feasible to maintain then in my opinion it should mention somewhere on the creating a custom renderer page or the createAutocomplete api reference page that the |
Thanks, I'll leave this issue open so we can take the time to address those suggestions |
Thank you @a47ae. What great find. It was driving me nuts. I was trying to figure out why this was not working in Preact either. The React example worked just fine. I followed the custom renderer instructions and also experienced the same issues where it wasn't mapping to the correct handler in Preact's case also being Here is adapted solution for Preact in case anyone else that may come across this.
The docs clearly state you can use any framework. So mentioning this on the custom renderer instructions would make a lot of sense. |
One day of debugging brought me here. @a47ae Thanks for the notice. |
Description
When creating a custom renderer using Vue 3, the state only updates on the input
change
event and not during input.So the state gets only updated when the user moves focus from the input and then moves focus back to the input.
Reproduction
Codesandbox →
Steps
foo
foo
Expected behaviour
foo
foo
without moving focus out of the inputEnvironment
The text was updated successfully, but these errors were encountered: