Skip to content
Snippets Groups Projects
Commit ab9e6df3 authored by Antoine Roy's avatar Antoine Roy
Browse files

handle error when pressing letter key on time fields

parent 2202c8fb
No related branches found
No related tags found
1 merge request!7Change on the slide bar's UI from pluggin annotation
Pipeline #1614 failed
......@@ -43,9 +43,14 @@ class HMSInput extends Component {
someChange(ev) {
const { onChange } = this.props;
const { state } = this;
if(Number(isNaN(ev.target.value))){
return;
}else{
console.log(Number(ev.target.value));
state[ev.target.name] = Number(ev.target.value);
onChange(state.hours * 3600 + state.minutes * 60 + state.seconds);
}
}
/** Add one second by simulating an input change */
addOneSec() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment