Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

fix dialog cancel handler, update tests, and update documentation #237

Merged
merged 1 commit into from
Feb 24, 2016

Conversation

Permagate
Copy link
Contributor

Related to #221 as per latest discussion. I also updated the docs since to make the onCancel availability more obvious.

Regarding tests, I cannot exactly test the 'open' state as of right now. Since the native open, showModal, and the cancel event fired on pressing Escape can only be called when the dialog is mounted on real document. I only got element not in document error when I tried them. The very least I can do is to test if the listeners are attached and detached correctly.

Cheers!
Permagate.

@tleunen
Copy link
Owner

tleunen commented Feb 24, 2016

I got the exact same issue when trying to write test around that.
Good enough, thanks so much!

tleunen added a commit that referenced this pull request Feb 24, 2016
fix dialog cancel handler, update tests, and update documentation
@tleunen tleunen merged commit 8866e90 into tleunen:master Feb 24, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants