New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(components): [input-number] Fix value decimals miss prop precision #8587
Conversation
👋 @so11y, seems like this is your first time contribution to element-plus.
|
🧪 Playground Preview: https://element-plus.run/?pr=8587 |
Unit tests seem to fail |
Sorry. I hadn't thought about the TypeScript type checker error. |
why code typecheck report increase exist error const elInputNumber = wrapper.findComponent(InputNumber).vm wrapper.findComponent({ name: 'ElInputNumber' }).vm but code ok |
Sorry for the confusion! |
no sry, smile, the question is solved
no sry, smile, the question is solved |
input-number components modelValue is decimals and stepStrictly miss prop precision if 0.2 to 0.3 result 0.300004
fix:stepStrictly verifyValue function miss use toPrecision
close #8570
dev
branch.