diff --git a/src/components/range/index.tsx b/src/components/range/index.tsx index fabc75c9..0d69511a 100644 --- a/src/components/range/index.tsx +++ b/src/components/range/index.tsx @@ -13,6 +13,8 @@ export default class Range extends Component { @bind private onTextInput(event: Event) { const input = event.target as HTMLInputElement; + const value = input.value.trim(); + if (!value) return; this.rangeWc!.value = input.value; const { onInput } = this.props; if (onInput) onInput(event);