Skip to content

Commit

Permalink
simplepicker: Fix an issue with multiple instances of simplepicker.
Browse files Browse the repository at this point in the history
There was a type in line 49 where it should have been
el = elOrOpts || 'body'.
  • Loading branch information
crossleyjuan authored and priyank-p committed May 29, 2020
1 parent e27aa11 commit ffde497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class SimplePicker {
el = undefined;
}

el = el || 'body';
el = (elOrOpts as HTMLElement | string) || 'body';
if (typeof el === 'string') {
el = document.querySelector(el) as HTMLElement;
}
Expand Down

0 comments on commit ffde497

Please sign in to comment.