Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggle is not working with sub elements #172

Open
jarkt opened this issue Feb 15, 2019 · 0 comments
Open

Toggle is not working with sub elements #172

jarkt opened this issue Feb 15, 2019 · 0 comments

Comments

@jarkt
Copy link

jarkt commented Feb 15, 2019

Toggling doesn't work on click on sub elements.

<span id="toggle">That works</span>
<span id="toggle"><span>That doesn't work</span></span>

As a workaround I tried to open the calendar manually by register a click event on the toggle element and call the open or show method.
That does also not work. There is crazy code in the Picker.Attach.js line 34 which closes the calendar on every click in the page immediately.

var documentEvent = function(event){
	if (this.attachedElements.contains(event.target)) return;
	this.close();
}.bind(this);
var document = this.picker.getDocument().addEvent('click', documentEvent);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant