Skip to content

Commit

Permalink
Merge pull request #110 from Talagozis/v1-dev
Browse files Browse the repository at this point in the history
Fix bug by adding missing classes in img element in select component
  • Loading branch information
DanielRuf authored Apr 27, 2021
2 parents b5b464c + a2be368 commit 96ee7bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,9 @@

// add icons
let iconUrl = option.getAttribute('data-icon');
let classes = option.getAttribute('class');
if (!!iconUrl) {
let imgEl = $(`<img alt="" src="${iconUrl}">`);
let imgEl = $(`<img alt="" class="${classes}" src="${iconUrl}">`);
liEl.prepend(imgEl);
}

Expand Down

0 comments on commit 96ee7bf

Please sign in to comment.