fix(form): form state style exception in noStyle mode #48604
+7,855
−7,184
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
中文版模板 / Chinese template
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
When form validation is performed with the
noStyle
property configured, there is a style exception in the successful state, and the style is also missing when thevariant
property is configured as 'filled' or 'borderless'.https://stackblitz.com/edit/react-c7ja7w?file=demo.tsx
variant: outlined
variant: filled
variant: borderless
📝 Changelog
Fix form validation style error when both 'noStyle' and 'variant' properties are configured as 'filled' or 'borderless'.
noStyle
时成功状态图标样式错误修复表单验证在同时配置
noStyle
与variant
属性为'filled'或'borderless'时样式错误☑️ Self-Check before Merge