This repository was archived by the owner on Oct 2, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 11771177
11781178 var transcludedMatch = transcluded . querySelectorAll ( '.ui-select-match' ) ;
11791179 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
11801181 if ( transcludedMatch . length !== 1 ) {
11811182 throw uiSelectMinErr ( 'transcluded' , "Expected 1 .ui-select-match but got '{0}'." , transcludedMatch . length ) ;
11821183 }
11831184 element . querySelectorAll ( '.ui-select-match' ) . replaceWith ( transcludedMatch ) ;
11841185
11851186 var transcludedChoices = transcluded . querySelectorAll ( '.ui-select-choices' ) ;
11861187 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
11871189 if ( transcludedChoices . length !== 1 ) {
11881190 throw uiSelectMinErr ( 'transcluded' , "Expected 1 .ui-select-choices but got '{0}'." , transcludedChoices . length ) ;
11891191 }
You can’t perform that action at this time.
0 commit comments