You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: IOS ion-select initialised off-screen, first time a value is selected the value is not rendered until something changes in page. #18843
Current behavior:
This could very well be due to Apple's implementation of their WebView but it's only the ion-select elements I've noticed it on.
on iOS, found on device and in simulator on OSX;
If a page is taller than the height of the device screen and an ion-select element is positioned off-screen, below the bottom, when scrolling to the item and selecting an option for the first time (e.g. changing from empty or no value to a value) the chosen value can be seen briefly and is then not rendered.
If any styling or content is changed that causes the value to be redrawn (presumably), such as;
scrolling up, so the element is off-screen, then scrolling back down to bring it into view.
choosing a different value in the same ion-select
choosing a value in another select (not sure what this changes to affect the initial ion-select)
Then the value is rendered.
Steps to reproduce:
build a page with a height taller than the device screen height, and position an ion-select such that you must scroll to bring it into view from its initial position.
Select an option for that ion-select
See the value be set then disappear
Edit the same ion-select to a different option, or scroll it out of view and back into view.
See the value now being rendered correctly.
Other information:
Using safari's inspector to view the elements as they change shows nothing to be wrong, and something as simple as scrolling the ion-select element out and back into view will cause it to be redrawn which suggests it may be down to the WebView and/or an order of operations on updating elements and styles.
It seems that ion-datetime also have this issue.
Not displaying their value when set, until something else updates to affect them.
But only if they are positioned off-screen on init of the page.
So, I see that this issue was closed by @manucorporat 's pull request being merged 19 hours ago, and release 4.8.1 was put out an hour or so after that.
Does 4.8.1 contain these changes?
I assume not, because if so the issue is not fixed.
Or are we looking at it being in the next release?
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Activity
cparkinsonMYCM commentedon Jul 30, 2019
It seems that ion-datetime also have this issue.
Not displaying their value when set, until something else updates to affect them.
But only if they are positioned off-screen on init of the page.
fix(all): component reusage (#18963)
fix(all): component reusage (#18963)
fix(all): component reusage (#18963)
cparkinsonMYCM commentedon Aug 28, 2019
So, I see that this issue was closed by @manucorporat 's pull request being merged 19 hours ago, and release 4.8.1 was put out an hour or so after that.
Does 4.8.1 contain these changes?
I assume not, because if so the issue is not fixed.
Or are we looking at it being in the next release?
cparkinsonMYCM commentedon Aug 28, 2019
If it helps I have recorded it happening via Simulator on OSX, file is a .mov in the zip archive.
ion-select offscreen init.mov.zip
liamdebeasi commentedon Aug 28, 2019
4.8.1 does not contain these changes. These fixes will be available in the next stable release of Ionic. Thanks!
cparkinsonMYCM commentedon Aug 28, 2019
Ah, okay.
No worries.
The closing of the issue had me confused.
cparkinsonMYCM commentedon Sep 5, 2019
Does 4.9.0 count as a stable release?
liamdebeasi commentedon Sep 5, 2019
@cparkinsonMYCM Yes, 4.9.0 is the latest stable release.
cparkinsonMYCM commentedon Sep 5, 2019
That's a little upsetting then, as the issue is still not resolved :(
liamdebeasi commentedon Sep 5, 2019
Are you able to provide a code reproduction of the issue? I can take another look.
ionitron-bot commentedon Oct 5, 2019
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.