3lang3 / react-vant

React mobile UI Components base on Vant
https://react-vant.3lang.dev
MIT License
1.31k stars 186 forks source link

🐛 [Bug]: 使用Dialog组件报错,控制台报警告 ? #643

Closed Garin151 closed 1 year ago

Garin151 commented 1 year ago

Which React Vant packages are impacted?

What version of React Vant are you using?

3.2.7

Reproduce live demo(codesandebox or stackblitz)?

No response

Descripition

在umi4版本中,使用Dialog.confirm(),控制台报Warning: Received false for a non-boolean attribute round.

If you want to write it to the DOM, pass a string instead: round="false" or round={value.toString()}.

If you used to conditionally omit it with round={condition && value}, pass round={condition ? value : undefined} instead.