I want to make a masked input that only accepts the following:
00-24:30 or 00
It's for a time of day box.
For example: 12:30 or 12:00
I have been using this component: https://github.com/insin/inputmask-core#pattern
But it will take any number if you use this pattern: 11:11
<MaskedInput value={this.props.time}
pattern={"11:11"}
maskPlaceholder={TIME_FORMAT}
placeholder={TIME_FORMAT}
onChange={this._onTimeChange}>
<Input type="text" className={InputClasses} />
</MaskedInput>
What can I do?