|
86 | 86 |
|
87 | 87 | if (datalistNeedsAnUpdate) { |
88 | 88 | var input = dcmnt.querySelector( |
| 89 | + // eslint-disable-next-line prettier/prettier |
89 | 90 | 'input[list="' + datalistNeedsAnUpdate.id + '"]' |
90 | 91 | ); |
91 | 92 |
|
92 | 93 | if (getInputValue(input) !== '') { |
93 | 94 | // Prepare the options and toggle the visiblity afterwards |
94 | 95 | toggleVisibility( |
95 | 96 | prepOptions(datalistNeedsAnUpdate, input).length, |
| 97 | + // eslint-disable-next-line prettier/prettier |
96 | 98 | datalistNeedsAnUpdate.querySelector(classNamePolyfillingSelect) |
97 | 99 | ); |
98 | 100 | } |
|
219 | 221 | var option = datalist.querySelector( |
220 | 222 | 'option[value="' + |
221 | 223 | getInputValue(input).replace(/\\([\s\S])|(")/g, '\\$1$2') + |
| 224 | + // eslint-disable-next-line prettier/prettier |
222 | 225 | '"]' |
223 | 226 | ); |
224 | 227 |
|
|
243 | 246 | option.disabled === false && |
244 | 247 | ((optValue !== '' && optValue.indexOf(inptValue) !== -1) || |
245 | 248 | (label && label.toLowerCase().indexOf(inptValue) !== -1) || |
| 249 | + // eslint-disable-next-line prettier/prettier |
246 | 250 | (text !== '' && text.indexOf(inptValue) !== -1)) |
247 | 251 | ); |
248 | 252 | }; |
|
404 | 408 | if (isValidSuggestion(opt, inputValue)) { |
405 | 409 | var textOptionPart = text.slice( |
406 | 410 | 0, |
| 411 | + // eslint-disable-next-line prettier/prettier |
407 | 412 | optionValue.length + textValueSeperator.length |
408 | 413 | ), |
409 | 414 | optionPart = optionValue + textValueSeperator; |
|
439 | 444 |
|
440 | 445 | // Input the unused options as siblings next to the select - and differentiate in between the regular, and the IE9 fix syntax upfront |
441 | 446 | (datalist.querySelectorAll('.ie9_fix')[0] || datalist).appendChild( |
| 447 | + // eslint-disable-next-line prettier/prettier |
442 | 448 | disabledValues |
443 | 449 | ); |
444 | 450 |
|
|
501 | 507 | '-' + |
502 | 508 | (rects[0].width + |
503 | 509 | parseFloat(inputStyles.getPropertyValue('margin-' + direction))) + |
| 510 | + // eslint-disable-next-line prettier/prettier |
504 | 511 | 'px' |
505 | 512 | ); |
506 | 513 | datalistSelect.style.marginTop = |
|
0 commit comments