【问题标题】:first click is of no effect when focusing on TextInput and then click elsewhere专注于 TextInput 时第一次单击无效,然后单击其他位置
【发布时间】:2015-11-30 08:55:41
【问题描述】:

如上所示,关注 TextInput,然后单击其他地方。

第一次点击绿色区域生效。

第一次点击红色区域无效(它是一个 ListView )。之前关注 TextInput 时,在 Android 上第一次点击硬件后退按钮时也会发生同样的事情。

这是一个错误还是我遗漏了什么? (我使用的 react-native 版本是 0.16.0-rc )

【问题讨论】:

    标签: react-native


    【解决方案1】:

    在 ListView 上添加 keyboardShouldPersistTaps={true} 就可以了

    【讨论】:

      猜你喜欢
      • 2022-06-15
      • 2021-11-13
      • 1970-01-01
      • 1970-01-01
      • 2016-03-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-11-24
      相关资源
      最近更新 更多