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

Spreadsheet does not trigger addCellValueChangeListener for anything else than text input #4588

Open
Artur- opened this issue Jan 23, 2023 · 0 comments · May be fixed by #4634
Open

Spreadsheet does not trigger addCellValueChangeListener for anything else than text input #4588

Artur- opened this issue Jan 23, 2023 · 0 comments · May be fixed by #4634

Comments

@Artur-
Copy link
Member

Artur- commented Jan 23, 2023

Description

In order to sync a spreadsheet cell value with an external component, I do

        spreadsheet.addCellValueChangeListener(event -> {
            CellReference a2 = new CellReference(spreadsheet.getCell("A2"));
            CellReference d4 = new CellReference(spreadsheet.getCell("D4"));
            if (event.getChangedCells().contains(a2) || event.getChangedCells().contains(d4)) {
                updateInvoiceNumberAndSource();
            }

        });

This works fine when typing text but when doing undo, redo or pasting a value, the event is not triggered

Expected outcome

A CellValueChangeListener is triggered whenever the Cell Value Changes

Minimal reproducible example

Above

Steps to reproduce

  1. Paste or do undo/reado

Environment

Vaadin version(s): 24.0.0.alpha9
OS: mac

Browsers

Chrome

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

Successfully merging a pull request may close this issue.

3 participants