Skip to content

ValueChangeEvent doesn't work as expected #60

@kevinkendzia

Description

@kevinkendzia

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions