File tree 1 file changed +2
-0
lines changed
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 1177
1177
1178
1178
var transcludedMatch = transcluded . querySelectorAll ( '.ui-select-match' ) ;
1179
1179
transcludedMatch . removeAttr ( 'ui-select-match' ) ; //To avoid loop in case directive as attr
1180
+ transcludedMatch . removeAttr ( 'data-ui-select-match' ) ; // Properly handle HTML5 data-attributes
1180
1181
if ( transcludedMatch . length !== 1 ) {
1181
1182
throw uiSelectMinErr ( 'transcluded' , "Expected 1 .ui-select-match but got '{0}'." , transcludedMatch . length ) ;
1182
1183
}
1183
1184
element . querySelectorAll ( '.ui-select-match' ) . replaceWith ( transcludedMatch ) ;
1184
1185
1185
1186
var transcludedChoices = transcluded . querySelectorAll ( '.ui-select-choices' ) ;
1186
1187
transcludedChoices . removeAttr ( 'ui-select-choices' ) ; //To avoid loop in case directive as attr
1188
+ transcludedChoices . removeAttr ( 'data-ui-select-choices' ) ; // Properly handle HTML5 data-attributes
1187
1189
if ( transcludedChoices . length !== 1 ) {
1188
1190
throw uiSelectMinErr ( 'transcluded' , "Expected 1 .ui-select-choices but got '{0}'." , transcludedChoices . length ) ;
1189
1191
}
You can’t perform that action at this time.
0 commit comments