Skip to content
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

[Autocomplete] onUpdateInput does not support Japanese #6732

Closed
sowa-s opened this issue Apr 28, 2017 · 2 comments
Closed

[Autocomplete] onUpdateInput does not support Japanese #6732

sowa-s opened this issue Apr 28, 2017 · 2 comments
Labels
component: autocomplete This is the name of the generic UI component, not the React module!

Comments

@sowa-s
Copy link

sowa-s commented Apr 28, 2017

Problem description

Autocomplete onUpdateInput does not support Japanese.
For example, when entering "か", "k a" is entered, but events occur at k and a respectively.
As a result, "kあ" is displayed.I want you to be displayed "か".

Link to minimal working code that reproduces the issue

<AutoComplete
  anchorOrigin={{ vertical: 'top', horizontal: 'left'}}
  targetOrigin={{ vertical: 'bottom', horizontal: 'left' }}
  menuProps={{maxHeight: 100}}
  filter={AutoComplete.noFilter}
  fullWidth={true}
  searchText={this.state.text}
  dataSource={this.dataSouce}
  multiLine={true}
  value={this.state.text}
  style={styles.textarea}
  underlineShow={false}
  onUpdateInput={this.handleForm.bind(this)}
/>
handleForm(value){
    this.setState({
      text: value,
    });
}

Versions

  • Material-UI:0.17.3
  • React:15.5.4
  • Browser:Google Chrome 58.0.3029.81

Images & references

2017-04-29 1 21 32

I would like to enter "こんにちは"....

@sowa-s sowa-s changed the title Autocomplete onUpdateInput does not support Japanese [Autocomplete] onUpdateInput does not support Japanese Apr 28, 2017
@lucasbento
Copy link

Hey @1234224576, this is a really odd issue, <AutoComplete /> simply passes the event's target.value to the function you supplied: https://github.com/callemall/material-ui/blob/master/src/AutoComplete/AutoComplete.js#L346-L348.

Would you be able to provide a running case on https://www.webpackbin.com/bins/-Kh7G86UTg0ckGC2hL94?

@oliviertassinari
Copy link
Member

Closed by #4783

@oliviertassinari oliviertassinari added the component: autocomplete This is the name of the generic UI component, not the React module! label Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: autocomplete This is the name of the generic UI component, not the React module!
Projects
None yet
Development

No branches or pull requests

3 participants