weui / react-weui

weui for react

Home Page:https://weui.github.io/react-weui/docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

两个CityPicker联动,第二个CityPicker弹出显示页面为空白

andrewyoung51 opened this issue · comments

Do you want to request a feature or report a bug (建议还是bug) ?
bug
What is the current behavior? (现有状况)
我使用两个citypicker,使用第一个citypicker的选择结果,去服务端查询获得第二个citypicker使用的数据,setState刷新页面。
点击第二个citypicker,弹出的页面显示空白,没有数据。点击“确定”隐藏弹出页;
再次点击第二个citypicker,弹出的页面显示正常,有数据。
我使用react插件查看,第二个citypicker的data被更新后,groups没有及时更新(因此显示空白页),“确定”后,groups更新了,因此第二次打开正常显示。
What is the expected behavior? (应有状况)
应该只需要点击一次第二个citypicker,弹出页面显示正常,有数据。
Which versions of React-weui, weui, and which OS and device are affected by this issue? (React-weui版本 weui版本 机型和系统)
"@wlk/react-weui": "^1.0.2",
使用Android6.0版本真机,或者Chrome67在windows 7上执行,都是这样的效果