Skip to content

Commit f574a6b

Browse files
authored
fix(dropdown): insert clearable at correct dom position
This PR makes sure a clearable icon is always positioned at the correct DOM node in case incomplete markup exists.
1 parent 34abb0e commit f574a6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/definitions/modules/dropdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@
363363
module.verbose('Adding clear icon');
364364
$clear = $('<i />')
365365
.addClass('remove icon')
366-
.insertBefore($text)
366+
.insertAfter($icon)
367367
;
368368
}
369369
if (module.is.search() && !module.has.search()) {

0 commit comments

Comments
 (0)