-
Notifications
You must be signed in to change notification settings - Fork 454
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React写的组件,H5端支持input元素的focus/blur事件,而编译成小程序不起作用 #54
Comments
import React from 'react' printInfo (info) { render () { 测试 <input type="text" name="sex" id="male" value={this.state.value} onFocus={this.printInfo.bind(this, 'focus')} onBlur={this.printInfo.bind(this, 'blur')}/> } } export default function createApp() { const container = document.createElement('div') container.id = 'app' document.body.appendChild(container) ReactDOM.render(, container) } |
focus和blur事件在浏览器中能触发,编译成小程序以后无法触发 |
已在 miniprogram-render@0.7.0 和 miniprogram-element@0.7.0 兼容修复 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: