Browse Source

feat(nc-gui): reset filter input value when changing comparison sub operation

pull/5185/head
Wing-Kam Wong 2 years ago
parent
commit
dd6a8a4ecf
  1. 5
      packages/nc-gui/components/smartsheet/toolbar/ColumnFilter.vue

5
packages/nc-gui/components/smartsheet/toolbar/ColumnFilter.vue

@ -90,6 +90,11 @@ const filterUpdateCondition = (filter: FilterType, i: number) => {
// since `blank`, `empty`, `null` doesn't require value,
// hence remove the previous value
filter.value = ''
} else if ([UITypes.Date, UITypes.DateTime].includes(col.uidt as UITypes)) {
// for date / datetime,
// the input type could be decimal or datepicker / datetime picker
// hence remove the previous value
filter.value = ''
}
saveOrUpdate(filter, i)
filterPrevComparisonOp.value[filter.id] = filter.comparison_op

Loading…
Cancel
Save