Skip to content

Commit a2b5c0b

Browse files
committed
formatter updates
1 parent ddbc32c commit a2b5c0b

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

packages/demo/src/examples/example07.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ <h2 class="bd-title">
5555
<label class="col-sm-2">Select with dynamic options</label>
5656

5757
<div class="col-sm-10">
58-
<select id="select3" name="select3" class="full-width" data-test="select3" required>
59-
</select>
58+
<select id="select3" name="select3" class="full-width" data-test="select3" required></select>
6059
</div>
6160
</div>
6261

packages/demo/src/examples/example07.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ export default class Example {
99
this.ms3 = multipleSelect('#select3', {
1010
lazyData: () => {
1111
return new Promise(resolve => {
12-
resolve({ '1': 'First', '2': 'Second', '3': 'Third', '4': 'Fourth', '5': 'Fifth'})
13-
})
14-
}
12+
resolve({ '1': 'First', '2': 'Second', '3': 'Third', '4': 'Fourth', '5': 'Fifth' });
13+
});
14+
},
1515
});
1616
this.btnElm = document.querySelector('.submit7');
1717
this.btnElm!.addEventListener('click', this.clickListener);

packages/multiple-select-vanilla/src/MultipleSelectInstance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1565,7 +1565,7 @@ export class MultipleSelectInstance {
15651565
} else {
15661566
// when multiple values could be set, we need to loop through each
15671567
Array.from(this.elm.options).forEach(option => {
1568-
option.selected = selectedValues.some(val => val().toString() === option.value);
1568+
option.selected = selectedValues.some(val => val() === option.value);
15691569
});
15701570
}
15711571

packages/multiple-select-vanilla/src/utils/domUtils.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ export function createDomStructure(item: HtmlStruct, appendToElm?: HTMLElement,
102102
return elm;
103103
}
104104

105-
106105
/**
107106
* Create html node with optgroups and options from data
108107
* @param data - array of options and/or optgroups
@@ -120,7 +119,7 @@ export function createDomStructureFromData(data: Array<OptGroupRowData | OptionR
120119
const optionProps: any = {
121120
value: row.value,
122121
disabled: row.disabled || false,
123-
selected: row.selected || false
122+
selected: row.selected || false,
124123
};
125124
if (row.classes) {
126125
optionProps.className = row.classes;

0 commit comments

Comments
 (0)