adopted-ember-addons / adopted-ember-addons/ember-pikaday
Pikaday close event confuses ember basic dropdown
- 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
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