alibaba / rax

🐰 Rax is a progressive framework for building universal application. https://rax.js.org
Other
8k stars 627 forks source link

[BUG] InputFiled.label只能传入string,否则小程序端会死循环 #2344

Open xmsz opened 2 years ago

xmsz commented 2 years ago

⌨️

Where is the bug from?

Fusion Mobile

Minimal code and steps to reproduce the bug

   <InputField label={<div>123</div>}name="test"/>

Current and expected behavior

死循环

Environment

最新

build.json

No response

Possible solution

No response

Additional context

No response

xmsz commented 2 years ago

可能相关的问题

const a = <div>!23</div>
<InputField isPreview renderPreview={() => <div>{a}</div>} />

同样会出现死循环

![Uploading image.png…]()

xmsz commented 1 year ago

any update?