ember-power-timepicker
ember-power-timepicker copied to clipboard
Assertion is hit when trying to clear the selected time
The following assertion bubbles up when trying to clear the selected time (hitting the cross) picked in the provided 'Simple Example' from the Readme.md: Uncaught TypeError: timeString must be a non-empty string. at Class.hours (time-picker.js:463) at Class.onchange (time-picker.js:17) at Backburner.join (backburner.js:576) at Function.run.join (ember-metal.js:4393) at action.js:389 at exports.flaggedInstrument (ember-metal.js:3787) at action.js:388 at Class.select (power-select.js:312) at Class.send (action_support.js:128) at Class.superWrapper [as send] (ember-utils.js:437)
The configuration is as follows:
{{time-picker selectedTime=timeSelected onchange=(action "onChange") increment=5 }}
import Controller from '[at]ember/controller';
export default Controller.extend( { timeSelected: null, time: null,
actions: { onChange(value) { this.set('time', value); } } });
@azhiv Thanks for letting me know. I'll have a look at this tomorrow.