question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Modal renrender cause can not input chinese

See original GitHub issue
import { List, InputItem, Modal } from 'antd-mobile';

class Demo extends React.Component {
  state = { nick: '' }
  finishNickModify = nick => {
    this.setState({ nick })
  }
  render() {
    return <Modal visible={true}> <List>
        <InputItem
            onChange={this.finishNickModify}
            value={this.state.nick}
          >昵称</InputItem>
    	</List></Modal>
    ;
  }
}

ReactDOM.render(<Demo></Demo>, mountNode);

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
deboyblogcommented, May 21, 2018

@basilbai 这是react-native 新版本的BUG 切换到以下对应版本就可以了

dependencies

"react": "16.2.0",
"react-native": "0.53.3",

devDependencies

"react-test-renderer": "16.2.0"
0reactions
tyrionyezicommented, Jun 12, 2019

“react”: “16.8.3”, “react-native”: “0.59.9”,

这两个版本 也有同样的问题 有解决办法没

Read more comments on GitHub >

github_iconTop Results From Across the Web

can't type chinese when used in bootstrap modal #238 - GitHub
It sounds like perhaps the modal component is causing a re-render that destroys the <input> element. Can you create a reduced test case...
Read more >
Unable to type in text-box in modal and re-render with new state
I have an onChange method and I can see that as soon as I click on the text box, the console logs show...
Read more >
Safari Technology Preview Release Notes - Apple Developer
Preview the new type of phishing-resistant credential that makes signing in to websites safer and easier. Available through Safari's WebAuthn platform ...
Read more >
Oracle Commerce Cloud Service - Administration interface
Workaround: Refresh the page. Chinese locales are not supported with Microsoft browsers on Windows 8 and Windows 10. If your computer is running...
Read more >
Publications - ARC官网-腾讯 - Tencent
In this paper, we present the first unified framework, named Unified Multi-modal Transformers (UMT), capable of realizing such joint optimization while can also ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found