@internetstiftelsen/styleguide 4.0.14 → 4.0.15
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.
|
@@ -238,7 +238,7 @@ var MultiSelect = function () {
|
|
|
238
238
|
}, {
|
|
239
239
|
key: 'removeHighlight',
|
|
240
240
|
value: function removeHighlight() {
|
|
241
|
-
var items = this.suggestionsBox.getElementsByClassName(this.baseClassName + '__suggestion-btn');
|
|
241
|
+
var items = this.suggestionsBox.getElementsByClassName((0, _className2.default)(this.baseClassName + '__suggestion-btn'));
|
|
242
242
|
|
|
243
243
|
[].forEach.call(items, function (item) {
|
|
244
244
|
item.classList.remove('autocomplete-active');
|
|
@@ -247,7 +247,7 @@ var MultiSelect = function () {
|
|
|
247
247
|
}, {
|
|
248
248
|
key: 'highlight',
|
|
249
249
|
value: function highlight(direction) {
|
|
250
|
-
var items = this.suggestionsBox.getElementsByClassName(this.baseClassName + '__suggestion-btn');
|
|
250
|
+
var items = this.suggestionsBox.getElementsByClassName((0, _className2.default)(this.baseClassName + '__suggestion-btn'));
|
|
251
251
|
var focus = this.currentFocus;
|
|
252
252
|
|
|
253
253
|
if (direction === 'down') {
|
package/package.json
CHANGED
|
@@ -168,7 +168,7 @@ class MultiSelect {
|
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
removeHighlight() {
|
|
171
|
-
const items = this.suggestionsBox.getElementsByClassName(`${this.baseClassName}__suggestion-btn`);
|
|
171
|
+
const items = this.suggestionsBox.getElementsByClassName(className(`${this.baseClassName}__suggestion-btn`));
|
|
172
172
|
|
|
173
173
|
[].forEach.call(items, (item) => {
|
|
174
174
|
item.classList.remove('autocomplete-active');
|
|
@@ -176,7 +176,7 @@ class MultiSelect {
|
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
highlight(direction) {
|
|
179
|
-
const items = this.suggestionsBox.getElementsByClassName(`${this.baseClassName}__suggestion-btn`);
|
|
179
|
+
const items = this.suggestionsBox.getElementsByClassName(className(`${this.baseClassName}__suggestion-btn`));
|
|
180
180
|
let focus = this.currentFocus;
|
|
181
181
|
|
|
182
182
|
if (direction === 'down') {
|