gcds-components
gcds-components copied to clipboard
bug: gcds-side-nav/gcds-top-nav can be stuck open when resizing
Prerequisites | Prérequis
- [x] I have read the Contributing Guidelines. | J’ai lu les Lignes directrices sur les contributions.
- [x] I agree to follow the Code of Conduct. | J’accepte de me conformer au Code de conduite.
- [x] I have searched for existing issues that already report this problem, without success. | J’ai vérifié parmi les tickets (issues) existants que ce sujet n’avait pas déjà été soumis.
GC Design System Components Package and Version | Paquet et version des composants de Système de design GC
Current Behavior | Comportement observé
- resize window to mobile size
- click on "Menu" button that appears
- With the menu open, resize the window to desktop size
- Sometimes the Menu is stuck open and only the close button disappears
Expected Behavior | Comportement attendu
- resize window to mobile size
- click on "Menu" button that appears
- With the menu open, resize the window to desktop size
- Menu shouldn't be stuck open
System Info | Information sur le système
Microsoft Edge
Steps to Reproduce | Étapes pour reproduire le bogue
- resize window to mobile size
- click on "Menu" button that appears
- With the menu open, resize the window to desktop size
- Sometimes the Menu is stuck open and only the close button disappears
Code Reproduction URL | URL de reproduction du code
No response
Additional Information | Informations supplémentaires
I don't think code reproduction is necessary? It happens on https://design-system.alpha.canada.ca/ . Since it only doesn't always happen (but often does), it might be a race condition in javascript?
Would also like to add that clicking Esc won't close it at desktop size
This issue should now be resolved in our v0.45.0 release.