Page 1 of 1

Password not trigger onChange event

Posted: 04 Nov 2017, 20:23
by numankayali
Hi there! I am trying to code a login page. I want to use 1 InputText for username and 1 Password for password. I can read username from InputText but can not read password because event is not triggered. My code:

constructor() {
super();
this.state = {
username: null,
password: null
};
this.handleLoginClick = this.handleLoginClick.bind(this);
}

<InputText onChange={(e) => this.handleOnUsernameChange(e)}/>

// this one works
handleOnUsernameChange(event) {
this.setState({
username: event.currentTarget.value
});
}

<Password feedback={false} onChange={(e) => this.handlePasswordChange(e)}/>
// this one not!
handlePasswordChange(event) {
this.setState({
password: event.currentTarget.value
});
}

thanks for your support!

Re: Password not trigger onChange event

Posted: 06 Nov 2017, 16:43
by merve7
Fixed for next version.