File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -890,7 +890,7 @@ class UI5Element extends HTMLElement {
890
890
const properties = this . getMetadata ( ) . getProperties ( ) ;
891
891
for ( const [ prop , propData ] of Object . entries ( properties ) ) { // eslint-disable-line
892
892
if ( ! isValidPropertyName ( prop ) ) {
893
- throw new Error ( `"${ prop } " is not a valid property name. Use a name that does not collide with DOM APIs` ) ;
893
+ console . warn ( `"${ prop } " is not a valid property name. Use a name that does not collide with DOM APIs` ) ; /* eslint-disable-line */
894
894
}
895
895
896
896
if ( propData . type === Boolean && propData . defaultValue ) {
@@ -946,7 +946,7 @@ class UI5Element extends HTMLElement {
946
946
const slots = this . getMetadata ( ) . getSlots ( ) ;
947
947
for ( const [ slotName , slotData ] of Object . entries ( slots ) ) { // eslint-disable-line
948
948
if ( ! isValidPropertyName ( slotName ) ) {
949
- throw new Error ( `"${ slotName } " is not a valid property name. Use a name that does not collide with DOM APIs` ) ;
949
+ console . warn ( `"${ slotName } " is not a valid property name. Use a name that does not collide with DOM APIs` ) ; /* eslint-disable-line */
950
950
}
951
951
952
952
const propertyName = slotData . propertyName || slotName ;
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ const allowList = [
4
4
"disabled" ,
5
5
"title" ,
6
6
"hidden" ,
7
+ "role" ,
7
8
"draggable" ,
8
9
] ;
9
10
You can’t perform that action at this time.
0 commit comments