We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Wrapping inputs in the new I18n render prop component introduced in 2.5.0 causes the input to lose focus on every keystroke.
To Reproduce Steps to reproduce the behavior, possibly with minimal code sample, e.g:
import React from 'react'; import { I18n } from '@lingui/react'; export default class extends React.Component { state = { value: '' }; render() { return ( <I18n> {({ i18n }) => ( <input value={this.state.value} onChange={event => this.setState({ value: event.target.value })} /> )} </I18n> ); } }
I've also reproduced this in the official examples here: https://github.com/alexanbj/js-lingui/blob/render-prop-bug/examples/webpack-react/src/RenderPropBug.js
Expected behavior That the input remains focused as I type, even though it is wrapped in a render prop component.
The text was updated successfully, but these errors were encountered:
Hey @alexanbj, I've just found the bug! Pushing a fix soon :)
Thanks for reporting! 👍
Sorry, something went wrong.
50a35cd
i18n
undefined
Released in v2.6.0
fix: Don't call React.createElement on function as children (lingui#302)
2327615
Closes lingui#302
No branches or pull requests
Describe the bug
Wrapping inputs in the new I18n render prop component introduced in 2.5.0 causes the input to lose focus on every keystroke.
To Reproduce
Steps to reproduce the behavior, possibly with minimal code sample, e.g:
I've also reproduced this in the official examples here: https://github.com/alexanbj/js-lingui/blob/render-prop-bug/examples/webpack-react/src/RenderPropBug.js
Expected behavior
That the input remains focused as I type, even though it is wrapped in a render prop component.
The text was updated successfully, but these errors were encountered: