Skip to content

Commit c2ad212

Browse files
authored
fix(ui5-datetime-picker): console error not thrown on Firefox browser (#4161)
Console error isn't thrown now, when user is selecting a date from the calendar part of the component in Firefox browser. Fixes: #4136
1 parent 273a51f commit c2ad212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/main/src/DateTimePicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ class DateTimePicker extends DatePicker {
319319
...this._previewValues,
320320
calendarTimestamp: event.detail.timestamp,
321321
calendarValue: event.detail.values[0],
322-
timeSelectionValue: event.path[1].lastChild.value,
322+
timeSelectionValue: event.composedPath()[1].lastChild.value,
323323
};
324324
}
325325

0 commit comments

Comments
 (0)