Skip to content

Commit 1e598f6

Browse files
committed
Be sure to use "" when the value is undefined, otherwise the field will not reset
1 parent 32e8256 commit 1e598f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/data-frame/filter-numeric.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const FilterNumericImpl: React.FC<FilterNumericImplProps> = (props) => {
7979
style={{ flex: "1 1 0", width: "0" }}
8080
type="number"
8181
placeholder={createPlaceholder(editing, "Min", rangeMin)}
82-
defaultValue={min}
82+
value={min ?? ""}
8383
// min={rangeMin}
8484
// max={rangeMax}
8585
step="any"
@@ -101,7 +101,7 @@ const FilterNumericImpl: React.FC<FilterNumericImplProps> = (props) => {
101101
style={{ flex: "1 1 0", width: "0" }}
102102
type="number"
103103
placeholder={createPlaceholder(editing, "Max", rangeMax)}
104-
defaultValue={max}
104+
value={max ?? ""}
105105
// min={rangeMin}
106106
// max={rangeMax}
107107
step="any"

0 commit comments

Comments
 (0)