adopted-ember-addons / adopted-ember-addons/ember-pikaday

Pikaday close event confuses ember basic dropdown

Offen
#191 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
156
Forks
164
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I'm not sure if this belongs here, as this is more a conflict with another addon than a pikaday specific problem.
If a pikaday component is inside the content of an `ember-basic-dropdown` component, the dropdown closes as soon as a date is clicked. It seems that the close event for the pikaday calendar is bubbling up tothe dropdown.

```
{{#basic-dropdown renderInPlace=true as | dd | }}
{{#dd.trigger class=triggerClasses eventType="click" }}
Show date picker
{{/dd.trigger}}
{{#dd.content }}
{{pikaday-input format="MM/DD/YYYY" onSelection=(action 'doSomethingOnSelection') onClose=(action 'doSomethingOnClose') bubbles=false}}
{{/dd.content}}
{{/basic-dropdown}}
```

I have tried it with a more simple popout and it works correctly:

```

{{#if foo}}
{{pikaday-input format="MM/DD/YYYY" onSelection=(action 'test') onClose=(action 'doSomethingOnClose') bubbling=false}}
{{/if}}
```
Is there a way to stop the close event of pikaday from bubbling up in such a case?

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start by reproducing the supplied ember-basic-dropdown example with a pikaday-input and compare it with the simpler popout example. Trace the close event when a date is clicked; done means selecting a date no longer closes the dropdown while the standalone picker behavior remains correct.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript
Bereich
frontend
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.