Skip to content

Commit 3fb0cfd

Browse files
committed
fix(DatePicker, DateRangePicker): add missing name attributes to input elements.
1 parent d7218b6 commit 3fb0cfd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/src/date-range-picker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,8 @@ class DateRangePicker extends Picker {
323323
inputGroupEl.classList.add(`input-group-${this._config.size}`)
324324
}
325325

326-
const startInputEl = this._createInput(this._config.range ? 'start-date' : 'date', this._getPlaceholder()[0], this._setInputValue(this._startDate))
327-
const endInputEl = this._createInput('end-date', this._getPlaceholder()[1], this._setInputValue(this._endDate))
326+
const startInputEl = this._createInput(this._config.range ? 'date-range-picker-start-date' : 'date-picker', this._getPlaceholder()[0], this._setInputValue(this._startDate))
327+
const endInputEl = this._createInput('date-range-picker-end-date', this._getPlaceholder()[1], this._setInputValue(this._endDate))
328328

329329
const inputGroupTextSeparatorEl = document.createElement('span')
330330
inputGroupTextSeparatorEl.classList.add('input-group-text')

0 commit comments

Comments
 (0)