-
Notifications
You must be signed in to change notification settings - Fork 13.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
feat(rtl): menu update side in runtime #11336
Conversation
@manucorporat This one completes #11233 |
# Conflicts: # src/components/menu/menu.scss
fixes ionic-team#9699 fixes ionic-team#11484 fixes ionic-team#11389 fixes ionic-team#11325 fixes ionic-team#11291 fixes ionic-team#10828 fixes ionic-team#11291 fixes ionic-team#10393 fixes ionic-team#10257 fixes ionic-team#9434 fixes ionic-team#8933 fixes ionic-team#7178 fixes ionic-team#7047 fixes ionic-team#10552 fixes ionic-team#10393 fixes ionic-team#10183 fixes ionic-team#10187 fixes ionic-team#10852 fixes ionic-team#11578
additional nav change details
update app-scripts to 1.3.11, add npm 5 support
…n the short term support for named ion-nav/ion-tabs to improve url in the short term
…'_transitionFinish', provide no mark as not transitioning on success in addition to '_transitionFinish', provide note as to why we want it in both places
fix swipe-to-go-back
fix linting issues
Based on the youtube video linked from @AmitMY, this solves my problem. |
Everything explained by @AmitMY was what I expected.
Guys, I am working on multiple production projects which strongly requires this to work on runtime without manually reloading the page and managing states. |
@chukwu Same as you, I am looking forward this getting merged. Unfortunetly, there is a bug here, because I don't clear the animation state before re-setting it. (so it partially works on android/windows, and does not on iOS) |
* chore(lint): update to work with newer tslint * chore(lint): fix all code that doesnt pass tslint fix all code that doesnt pass tslint
…, add deprecation notice
We need help from IONIC team to solve this problem ASAP. |
Hello and thank you for contributing to Ionic! We have been working on porting all of the Ionic components to web components and have recently updated |
WIP
Short description of what this resolves:
Update menu type when platform direction changes
Changes proposed in this pull request:
_side
, don't save normalised sideisRightSide
is now a magic method instead of a variable (avoid mistakes when changing dir in runtime)Explanation:
menuToggle
forstart
andend
(just missing from menu in general)updatePosition
, which sets the menu enter / close animation. (This worked when you start ltr, or start rtl, but not if you want to switch)updatePosition
again to set the correct animation (becausestart
/end
are now the opposite sides)start
/end
instead ofleft
andright
.Problem:
If you switch direction, the
updatePosition
is called again, and instead of overriding the animation, it seems to clash with it, so it animates from the middle, see: https://youtu.be/3VFDO7otYrUIonic Version: 3.x
All tests passing