Skip to content

Commit ef5e461

Browse files
committed
fix: add missing cell reference without sheet name to event
1 parent ce3b070 commit ef5e461

File tree

1 file changed

+7
-1
lines changed
  • vaadin-spreadsheet-flow-parent/vaadin-spreadsheet-flow/src/main/java/com/vaadin/flow/component/spreadsheet

1 file changed

+7
-1
lines changed

vaadin-spreadsheet-flow-parent/vaadin-spreadsheet-flow/src/main/java/com/vaadin/flow/component/spreadsheet/CellValueManager.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,13 @@ private String getFormattedCellValue(Cell cell) {
784784

785785
private void fireCellValueChangeEvent(Cell cell) {
786786
Set<CellReference> cells = new HashSet<CellReference>();
787-
cells.add(new CellReference(cell));
787+
CellReference ref = new CellReference(cell);
788+
cells.add(ref);
789+
if (ref.getSheetName() != null) {
790+
CellReference refWithoutSheetName = new CellReference(ref.getRow(),
791+
ref.getCol());
792+
cells.add(refWithoutSheetName);
793+
}
788794
spreadsheet.fireEvent(new CellValueChangeEvent(spreadsheet, cells));
789795
}
790796

0 commit comments

Comments
 (0)