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

fix: trigger opened.zf.offcanvas at the end to prevent race conditions #10967

Merged
merged 1 commit into from Feb 21, 2018
Merged

fix: trigger opened.zf.offcanvas at the end to prevent race conditions #10967

merged 1 commit into from Feb 21, 2018

Conversation

DanielRuf
Copy link
Contributor

This prevents a race condition and triggers the event after all other things are done.

@ncoden ncoden added this to the 6.4.4 milestone Feb 21, 2018
Copy link
Contributor

@ncoden ncoden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thanks

@@ -280,6 +280,7 @@ class OffCanvas extends Plugin {
* @param {Object} event - Event object passed from listener.
* @param {jQuery} trigger - element that triggered the off-canvas to open.
* @fires OffCanvas#opened
* @todo also trigger 'open' event?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Part of #10949

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. It's a todo annotation so we don't forget to revisit this (I hope so). =)

@ncoden ncoden merged commit 7323ef9 into foundation:develop Feb 21, 2018
@DanielRuf DanielRuf deleted the fix/offcanvas-trigger-opened-later branch February 21, 2018 23:50
ncoden added a commit to ncoden/foundation-sites that referenced this pull request Jun 16, 2018
…dless-chrome for v6.5.0

1e789d5 tests: migrate to mocha-headless-chrome
3e86d6e revert GetDimensions() unit test change for IE11
58ca238 fire opened.zf.offcanvas after adding the classes to prevent some race conditions
5c91b76 trigger opened.zf.offcanvas at the end
5744ead reflect change of npm script name in readme
1e1b349 Revert "fire opened.zf.offcanvas after adding the classes to prevent some race conditions"
c5ef695 Revert "trigger opened.zf.offcanvas at the end"
12ae1a9 revert component file and test to initial state
2eee404 remove whitespace from empty line
137edac add missing whitespace to empty line
8922cf6 chore: update package-lock for mocha-headless-chrome

Co-Authored-By: Daniel Ruf <daniel.ruf@ueberbit.de>
Co-Authored-By: Nicolas Coden <nicolas@ncoden.fr>
Signed-off-by: Nicolas Coden <nicolas@ncoden.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants