Skip to content

Commit

Permalink
do not apply empty style attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
koenpunt committed Feb 7, 2018
1 parent 87d4ecd commit 7e2feb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coffee/lib/abstract-chosen.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class AbstractChosen

option_el = document.createElement("li")
option_el.className = classes.join(" ")
option_el.style.cssText = option.style
option_el.style.cssText = option.style if option.style
option_el.setAttribute("data-option-array-index", option.array_index)
option_el.innerHTML = option.highlighted_html or option.html
option_el.title = option.title if option.title
Expand Down

0 comments on commit 7e2feb6

Please # to comment.