Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #211 from lunain84/fix/package-test
Browse files Browse the repository at this point in the history
🐛 Fix: add picker options
  • Loading branch information
joeattardi authored Jun 9, 2022
2 parents 43dc0d2 + fc8f36d commit a94914e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-test/esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { TwemojiRenderer } from 'https://unpkg.com/picmo@5.0.0-beta.3/renderers/

document.addEventListener('DOMContentLoaded', () => {
const nativeButton = document.querySelector('#native .emoji-button');
const nativePicker = createPopup({
const nativePicker = createPopup({}, {
referenceElement: nativeButton,
triggerElement: nativeButton,
position: 'right-start'
Expand All @@ -19,7 +19,7 @@ document.addEventListener('DOMContentLoaded', () => {
});

const twemojiButton = document.querySelector('#twemoji .emoji-button');
const twemojiPicker = createPopup({
const twemojiPicker = createPopup({}, {
renderer: new TwemojiRenderer(),
referenceElement: twemojiButton,
triggerElement: twemojiButton,
Expand Down
4 changes: 2 additions & 2 deletions package-test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { TwemojiRenderer } from '@picmo/renderer-twemoji';

const button = document.querySelector('#native .emoji-button');

const picker = createPopup({
const picker = createPopup({},{
referenceElement: button,
triggerElement: button,
position: 'right-start'
Expand All @@ -23,7 +23,7 @@ button.addEventListener('click', () => {
});

// const twemoji = document.querySelector('#twemoji .emoji-button');
// const twemojiPicker = createPopup({
// const twemojiPicker = createPopup({}, {
// referenceElement: twemoji,
// triggerElement: twemoji,
// renderer: new TwemojiRenderer(),
Expand Down
4 changes: 2 additions & 2 deletions package-test/umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { createPopup } = window.picmo;

document.addEventListener('DOMContentLoaded', () => {
const nativeButton = document.querySelector('#native .emoji-button');
const nativePicker = createPopup({
const nativePicker = createPopup({}, {
referenceElement: nativeButton,
triggerElement: nativeButton,
position: 'right-start'
Expand All @@ -18,7 +18,7 @@ document.addEventListener('DOMContentLoaded', () => {
});

const twemojiButton = document.querySelector('#twemoji .emoji-button');
const twemojiPicker = createPopup({
const twemojiPicker = createPopup({}, {
renderer: new window.TwemojiRenderer(),
referenceElement: twemojiButton,
triggerElement: twemojiButton,
Expand Down

0 comments on commit a94914e

Please sign in to comment.