-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Documentation: Off-canvas events are improperly cased (Typo) #11523
Comments
Please let us know which version of Foundation you use. We changed the event names in the RC releases and the docs are for the latest release (see top left). |
I am using an rc release ... v6.5.0-rc.3, however it might be important to note that when installation is done through NPM - ´npm install foundation-sites´ this is the release that is installed |
Indeed. cc @ncoden is the event name change not part of the current RC release? |
No it is not. It would be a breaking change. This is a documentation issue, related to foundation/foundation-docs#24. |
I can't reproduce it locally. This has been fixed on |
@ncoden see the docs. There is currently 6.5.0 RC3 uses |
The docs do not reflect the current events in RC3. So the docs are not consistent atm. |
I seen the docs. But this is fixed in RC4 with #11512. |
My bad. I double checked everything and RC4 have the good event names but rely on the wrong version of I took a look at the history of this bug, and we are back at #10155. OffCanvas events are in CamelCase because we rely on
Edit: the JSdoc event namespaces don't work as I expected. So I guess we'll fake the className in the OffCanvas documentation for now. |
…ion#11523 Document events with the namespace of the triggered event instead of the class name. There is not ideal but this is better than having a documentation that doesn't match the described event. This fix is compatible with Foundation <= v6.5.0 Closes foundation#11523
See #11526 |
Description
In the docs for Foundation 6 Off-canvas component it lists the event triggers to listen for as:
opened.zf.offCanvas
| Fires when the off-canvas menu opens.closed.zf.offCanvas
| Fires when the off-canvas menu opens.However neither of those events are ever triggered, however, when changed to a lowercase "c" everything works as it is supposed to:
opened.zf.offcanvas
| Fires when the off-canvas menu opens.closed.zf.offcanvas
| Fires when the off-canvas menu opens.Possible Solution
Change the docs to provide the correct casing for the events
Checklist
The text was updated successfully, but these errors were encountered: