Skip to content

Commit

Permalink
fix(dropdown): insert clearable at correct dom position
Browse files Browse the repository at this point in the history
This PR makes sure a clearable icon is always positioned at the correct DOM node in case incomplete markup exists.
  • Loading branch information
lubber-de committed May 22, 2023
1 parent 34abb0e commit f574a6b
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 @@ -363,7 +363,7 @@
module.verbose('Adding clear icon');
$clear = $('<i />')
.addClass('remove icon')
.insertBefore($text)
.insertAfter($icon)
;
}
if (module.is.search() && !module.has.search()) {
Expand Down

0 comments on commit f574a6b

Please sign in to comment.