Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
handleInput = (event) => {
const { updateAnswer } = this.props;
// FIXME: this probably won't handle composition updates since we haven't used an eventListener
// should probaly use wk.bind/unbind in cdm/cwm
const value = toKana(event.target.value.toLowerCase(), { IMEMode: true });
updateAnswer({ value });
}
this.handleChange = (event) => {
event.persist();
// FIXME: this probably won't handle composition updates since we haven't used an eventListener
// need to double-check with Microsoft IME
// should potentially use wk.bind/unbind in cdm/cwm
const newValue = toKana(event.target.value.toLowerCase(), { IMEMode: true });
this.setState({ value: newValue });
this.debouncedOnChange(newValue);
};
}
const convertInput = (value) => toKana(value, { IMEMode: true });