Skip to content

Commit

Permalink
Attempt to de-dup issue with multiple Picker imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
ngainsboro-figma committed Jan 9, 2024
1 parent a755469 commit 58ddd98
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/emoji-mart/src/components/Picker/PickerElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ export default class PickerElement extends ShadowElement {
}
}

if ('customElements' in window && !customElements.get('em-emoji-picker')) {
customElements.define('em-emoji-picker', PickerElement)
if ('customElements' in window && !customElements.get('em-emoji-picker-15')) {
customElements.define('em-emoji-picker-15', PickerElement)
}

0 comments on commit 58ddd98

Please sign in to comment.