Skip to content

Commit

Permalink
fix: masked input trigger change handler on remove whole value (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasiliigavshin authored Jun 13, 2023
1 parent 7776b99 commit 2a260c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/main/ts/mask/MaskedInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ class MaskedInputComponent extends PureComponent<MaskedInputProps, {}> {
ref={this.setRef}
onBlur={this.onBlur}
onChange={this.onChange}
defaultValue={this.props.value}
defaultValue=""
value={this.props.value}
{...props}
/>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ exports[`DatePicker renders correctly 1`] = `
onKeyDown={[Function]}
onKeyUp={[Function]}
type="text"
value=""
/>
<div
className="css-t03j0v"
Expand Down

0 comments on commit 2a260c3

Please sign in to comment.