Skip to content

Commit

Permalink
fix(dropdown): generated id should not start with a number
Browse files Browse the repository at this point in the history
introduced in #2409

this change was failing our strict tests as we require ID to not start with a number

no BC break as no stable release shipped yet
  • Loading branch information
mvorisek authored Sep 25, 2022
1 parent 0740de8 commit 891101c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/definitions/modules/dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ $.fn.dropdown = function(parameters) {
;
if (labelNode.length) {
if (!labelNode.attr('id')) {
labelNode.attr('id', module.get.id() + '_formLabel');
labelNode.attr('id', '_' + module.get.id() + '_formLabel');
}
$search.attr('aria-labelledby', labelNode.attr('id'));
}
Expand Down

0 comments on commit 891101c

Please sign in to comment.