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

ValueChangeEvent doesn't work as expected #60

Open
kevinkendzia opened this issue Apr 23, 2024 · 1 comment
Open

ValueChangeEvent doesn't work as expected #60

kevinkendzia opened this issue Apr 23, 2024 · 1 comment

Comments

@kevinkendzia
Copy link

I tried using the editor in my app but ran into problems reacting to user changes.

isFromClient() of a ValueChangeEvent seems to always return false regardless of wether I changed something on clientside or not.
Also the event is triggered on multiple occasions:

  • on setValue()
  • on Focus (when I click on the Editor)
  • on Blur

I know the editor replaces tags like <b> (Bold-Tag) with <strong> (String-Tag) and seems to trigger valueChanges because of this, but can I distinguish between this correction and a actual user change?

My goal is, to only react to valueChanges explicitly triggered by user input.

This is a minimal vaadin starter showing my problem:
ckeditorvaluechange.zip

@eroself
Copy link
Collaborator

eroself commented Apr 26, 2024

Thanks for your interest to this addon. Yes, will change the part of isFromClient.
Regarding distinguish between this correction and a actual user change, it's not supported.

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

2 participants