Skip to content

update event not triggered on checkbox when onReadOnlyChecked returns true and editable is false #3676

Open
@deterralba

Description

@deterralba

What’s the bug you are facing?

Hello & thank you for this awesome lib 👍

The 'update' event is not not triggered on checkbox elements when the editor is not in its editable state but onReadOnlyChecked returns true (tested with react)

Which browser was this experienced in? Are any special extensions installed?

latest firefox version on ubuntu

How can we reproduce the bug on our side?

with this sandbox : https://codesandbox.io/s/update-not-trigger-on-checkbox-when-editable-is-false-v87v22?file=/src/App.js:468-485
you can see in the console that the update event is not trigger when editable is false, but it is when editable is true.

Can you provide a CodeSandbox?

here https://codesandbox.io/s/update-not-trigger-on-checkbox-when-editable-is-false-v87v22?file=/src/App.js:468-485

What did you expect to happen?

I would expect the update event to be trigger when the checkbox state changes, even if editable is set to false. Is this is not a bug but a API design choice, do I have the ability to trigger manually an update event?

Anything to add? (optional)

No response

Did you update your dependencies?

  • Yes, I’ve updated my dependencies to use the latest version of all packages.

Are you sponsoring us?

  • Yes, I’m a sponsor. 💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugThe issue or pullrequest is related to a bug

    Type

    No type

    Projects

    Status

    Needs Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions