File tree 2 files changed +2
-6
lines changed
2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ class RenderScheduler {
114
114
}
115
115
116
116
static getNotDefinedComponents ( ) {
117
- return Array . from ( document . querySelectorAll ( ":not(:defined) " ) ) . filter ( el => el . localName . startsWith ( "ui5-" ) ) ;
117
+ return Array . from ( document . querySelectorAll ( "* " ) ) . filter ( el => el . localName . startsWith ( "ui5-" ) && ! el . _isUI5Element ) ;
118
118
}
119
119
120
120
/**
Original file line number Diff line number Diff line change @@ -255,10 +255,6 @@ class DayPicker extends UI5Element {
255
255
onclick ( event ) {
256
256
const target = getShadowDOMTarget ( event ) ;
257
257
258
- if ( target . className . indexOf ( "sapWCDayPickerItem" ) === - 1 ) {
259
- return ;
260
- }
261
-
262
258
const dayPressed = this . _isDayPressed ( target ) ;
263
259
264
260
if ( dayPressed ) {
@@ -386,7 +382,7 @@ class DayPicker extends UI5Element {
386
382
387
383
_isDayPressed ( target ) {
388
384
const targetParent = target . parentNode ;
389
- return ( target . className . indexOf ( "sapWCDayPickerItem" ) > - 1 ) || ( targetParent && targetParent . className . indexOf ( "sapWCDayPickerItem" ) > - 1 ) ;
385
+ return ( target . className . indexOf ( "sapWCDayPickerItem" ) > - 1 ) || ( targetParent && target . parentNode . classList . contains ( "sapWCDayPickerItem" ) ) ;
390
386
}
391
387
392
388
_getVisibleDays ( oStartDate , bIncludeBCDates ) {
You can’t perform that action at this time.
0 commit comments