Skip to content
#

React Native

react-native logo

React Native is a JavaScript mobile framework developed by Facebook. It allows developers to build Android and iOS mobile apps using JavaScript and reuse code across web and mobile applications.

Here are 22,475 public repositories matching this topic...

storybook
ilzhi
ilzhi commented Aug 12, 2020

相关平台

微信小程序

复现仓库

https://github.com/li-z/taro-bug
小程序基础库: 2.12.0
使用框架: React

复现步骤

运行项目后点击跳转到详情页,然后返回首页。然后触发子组件的 onClick 事件时,回调函数却还是详情页的函数。去掉id属性后正常。

期望结果

有无id属性都应正常

实际结果

有id属性异常

环境信息

Taro CLI 3.0.7 environment info:
    System:
      OS: macOS
formik
krichter722
krichter722 commented Apr 19, 2020

🚀 Feature request

Current Behavior

The type ErrorMessage doesn't have an id property.

Desired Behavior

It'd be nice id?: string would be added to the type ErrorMessage and set on the outermost component that serves as error message.

Suggested Solution

Add id={this.props.id} to the outer component in ErrorMessage.

Who does this impact? Who is this

mattermost-server

Created by Facebook

Released January 2015

Latest release about 2 months ago

Repository
facebook/react-native
Website
reactnative.com
Wikipedia
Wikipedia

Related Topics

reactjs
You can’t perform that action at this time.