airbnb / goji-js

React ❤️ Mini Program
https://goji.js.org
MIT License
224 stars 27 forks source link

Enable wrapped input/textarea for baidu #165

Closed malash closed 2 years ago

malash commented 2 years ago

Wrapped components aim to resolve unexpected property change issues.

For example the focus property of input and textarea triggers a focus action each time when this.setData called. But in React world we expect it only happen when focus becomes true from false.

The wrapped component prevent useless setData by observe method to fix this issue. Because it's a custom component we need to test it carefully on each enabled platform.

image image