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 1215
1215
1216
1216
var transcludedMatch = transcluded . querySelectorAll ( '.ui-select-match' ) ;
1217
1217
transcludedMatch . removeAttr ( 'ui-select-match' ) ; //To avoid loop in case directive as attr
1218
+ transcludedMatch . removeAttr ( 'data-ui-select-match' ) ; // Properly handle HTML5 data-attributes
1218
1219
if ( transcludedMatch . length !== 1 ) {
1219
1220
throw uiSelectMinErr ( 'transcluded' , "Expected 1 .ui-select-match but got '{0}'." , transcludedMatch . length ) ;
1220
1221
}
1221
1222
element . querySelectorAll ( '.ui-select-match' ) . replaceWith ( transcludedMatch ) ;
1222
1223
1223
1224
var transcludedChoices = transcluded . querySelectorAll ( '.ui-select-choices' ) ;
1224
1225
transcludedChoices . removeAttr ( 'ui-select-choices' ) ; //To avoid loop in case directive as attr
1226
+ transcludedChoices . removeAttr ( 'data-ui-select-choices' ) ; // Properly handle HTML5 data-attributes
1225
1227
if ( transcludedChoices . length !== 1 ) {
1226
1228
throw uiSelectMinErr ( 'transcluded' , "Expected 1 .ui-select-choices but got '{0}'." , transcludedChoices . length ) ;
1227
1229
}
You can’t perform that action at this time.
0 commit comments