Skip to content

Commit e17c508

Browse files
committed
fix(TimePicker): add missing name attribute to the input element
1 parent 3fb0cfd commit e17c508

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

js/src/time-picker.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,10 @@ class TimePicker extends Picker {
252252
inputEl.type = 'text'
253253
inputEl.value = this._date ? this._date.toLocaleTimeString(this._config.locale) : ''
254254

255+
if (this._element.id) {
256+
inputEl.name = `time-picker-${this._element.id}`
257+
}
258+
255259
inputGroupEl.append(inputEl)
256260

257261
const inputGroupTextEl = document.createElement('span')

0 commit comments

Comments
 (0)