Skip to content
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.

Commit

Permalink
fix(numeric): 修复numeric可以向Form推送form.change事件
Browse files Browse the repository at this point in the history
  • Loading branch information
shenjunjian authored and kagol committed Feb 24, 2023
1 parent ddd3c5c commit 9d80761
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/numeric/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ export const handleInput = ({ state, api, emit, props }) => (event) => {
event.target.value = isNull(value) ? '' : value
state.lastInput = value
state.userInput = value
api.setCurrentValue(value === '-' ? 0 : value)
}

export const handleInputChange = ({ api }) => (event) => {
Expand Down

0 comments on commit 9d80761

Please sign in to comment.