docs(changeset): Possible selection fixes

This commit is contained in:
Hein
2025-12-01 11:42:26 +02:00
parent b514c906c8
commit 7c1d47819a
4 changed files with 24 additions and 15 deletions

View File

@@ -463,13 +463,10 @@ const { Provider, useStore: useGridlerStore } = createSyncStore<GridlerStoreStat
const [col, row] = cell;
if (state.glideProps?.onCellClicked) {
state.glideProps?.onCellClicked?.(cell, event);
} else {
if (state.values?.length) {
if (state.onChange) {
state.onChange(state.values);
} else {
state.setState('values', state.values);
}
}
if (state.values?.length) {
if (state.onChange) {
state.onChange(state.values);
}
}