Skip to content

Commit ce3b070

Browse files
committed
fix: add cell reference without sheet name to cell value change event
1 parent b02d467 commit ce3b070

File tree

1 file changed

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

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,13 @@ private void fireFormulaValueChangeEvent(Set<CellReference> changedCells) {
794794
}
795795

796796
private void fireCellValueChangeEvent(Set<CellReference> changedCells) {
797+
List<CellReference> cellRefsWithSheetName = changedCells.stream()
798+
.filter(ref -> ref.getSheetName() != null).toList();
799+
cellRefsWithSheetName.forEach(ref -> {
800+
CellReference refWithoutSheetName = new CellReference(ref.getRow(),
801+
ref.getCol());
802+
changedCells.add(refWithoutSheetName);
803+
});
797804
spreadsheet
798805
.fireEvent(new CellValueChangeEvent(spreadsheet, changedCells));
799806
}

0 commit comments

Comments
 (0)