lucos_search_component 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +7 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -60,9 +60,13 @@ class LucosSearchComponent extends HTMLSelectElement {
|
|
|
60
60
|
`;
|
|
61
61
|
component.appendChild(mainStyle);
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
// If webpack is configured with `css-loader` but not `style-loader`, include the tom-select stylesheet here
|
|
64
|
+
// (If `style-loader` is being used, the tom-select stylesheet will be handled by that)
|
|
65
|
+
if (tomSelectStylesheet) {
|
|
66
|
+
const tomStyle = document.createElement('style');
|
|
67
|
+
tomStyle.textContent = tomSelectStylesheet[0][1];
|
|
68
|
+
component.appendChild(tomStyle);
|
|
69
|
+
}
|
|
66
70
|
|
|
67
71
|
component.setAttribute("multiple", "multiple");
|
|
68
72
|
new TomSelect(component, {
|