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

Pikaday close event confuses ember basic dropdown

未关闭
#191 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
156
派生
164
PR 合并指标
30 天内没有已合并 PR

描述

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?

贡献指南

打开贡献指南

调研方向

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.

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
frontend
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。