-
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
fix(select): RTL fix for searchbar #11355
Conversation
RTL fix for searchbar component
I forgot to refrence _isRTL
@@ -63,6 +63,7 @@ export class Searchbar extends BaseInput<string> { | |||
_isActive: boolean = false; | |||
_showCancelButton: boolean = false; | |||
_animated: boolean = false; | |||
_isRTL: boolean = this._plt.isRTL(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isRTL
is now a variable of platform
, and not a method. so instead of having, this line, and then if (this._isRTL)
, use:
if (this._plt.isRTL)
It will then also work on realtime direction switch.
Nice work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a bunch, didn't know that.
@sijav you should be able to run |
@manucorporat could you address me those issues? with |
PR - ionic-team#11342 - covers the scss, and is about done
@brandyscarney Tested, works as expected on ltr & rtl (after applying this fix - #11651 on master) (gulp e2e.watch --folder=searchbar/basic) |
Short description of what this resolves:
RTL fix for searchbar component
Changes proposed in this pull request:
Ionic Version: 2.x / 3.x
Fixes: #11211