We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77c0d24 commit 8099824Copy full SHA for 8099824
js/src/time-picker.js
@@ -135,7 +135,12 @@ class TimePicker extends Picker {
135
136
update(config) {
137
this._config = this._getConfig(config)
138
- this._element.innerHTML = ''
+ this._date = this._convertStringToDate(this._config.time)
139
+ this._ampm = this._date ? getAmPm(new Date(this._date), this._config.locale) : 'am'
140
+
141
+ this._dropdownToggleEl.innerHTML = ''
142
+ this._dropdownMenuEl.innerHTML = ''
143
144
this._createTimePicker()
145
this._createTimePickerSelection()
146
}
0 commit comments