From 5ff9de287693b6d8038c86829b29deebf0e531e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Loi=CC=88c=20SENCE?= Date: Wed, 11 Mar 2020 13:35:16 +0100 Subject: [PATCH] Forward class into select option with icon --- assets/javascripts/materialize.js | 1 + assets/javascripts/materialize/select.js | 1 + 2 files changed, 2 insertions(+) diff --git a/assets/javascripts/materialize.js b/assets/javascripts/materialize.js index b15d3f2..7974aa7 100644 --- a/assets/javascripts/materialize.js +++ b/assets/javascripts/materialize.js @@ -11916,6 +11916,7 @@ $jscomp.polyfill = function (e, r, p, m) { var spanEl = $(''); spanEl.html(multipleCheckbox); liEl.addClass(disabledClass + " " + optgroupClass); + liEl.addClass(option.className); liEl.append(spanEl); // add icons diff --git a/assets/javascripts/materialize/select.js b/assets/javascripts/materialize/select.js index 5a2f83e..f4da625 100644 --- a/assets/javascripts/materialize/select.js +++ b/assets/javascripts/materialize/select.js @@ -339,6 +339,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function" var spanEl = $(''); spanEl.html(multipleCheckbox); liEl.addClass(disabledClass + ' ' + optgroupClass); + liEl.addClass(option.className); liEl.append(spanEl); // add icons