Skip to content

Commit ea59cdc

Browse files
committed
enhancement(Select) coding standards eslint fixes #506
1 parent 56752e9 commit ea59cdc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/select.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class FormSelect extends Component<FormSelectOptions> {
5454
...FormSelect.defaults,
5555
...options
5656
};
57-
57+
5858
this.isMultiple = this.el.multiple;
5959
this.el.tabIndex = -1;
6060
this._values = [];
@@ -276,7 +276,7 @@ export class FormSelect extends Component<FormSelectOptions> {
276276
const userOnOpenEnd = dropdownOptions.onOpenEnd;
277277
const userOnCloseEnd = dropdownOptions.onCloseEnd;
278278
// Add callback for centering selected option when dropdown content is scrollable
279-
dropdownOptions.onOpenEnd = (el) => {
279+
dropdownOptions.onOpenEnd = () => {
280280
const selectedOption = this.dropdownOptions.querySelector('.selected');
281281
if (selectedOption) {
282282
// Focus selected option in dropdown
@@ -299,7 +299,7 @@ export class FormSelect extends Component<FormSelectOptions> {
299299
userOnOpenEnd.call(this.dropdown, this.el);
300300
};
301301
// Add callback for reseting "expanded" state
302-
dropdownOptions.onCloseEnd = (el) => {
302+
dropdownOptions.onCloseEnd = () => {
303303
this.input.ariaExpanded = 'false';
304304
// Handle user declared onOpenEnd if needed
305305
if (userOnCloseEnd && typeof userOnCloseEnd === 'function')

0 commit comments

Comments
 (0)