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: picker column prevSelect is always the same as selectedIndex #21764
ionPickerColChange picker event handler receives change details and its property prevSelected value is always the same as selectedIndex prop value;
Expected behavior:
I assume that prevSelected should reflect the previously selected index and selectedIndex should reflect the currently selected index and those should be different if there has been a changed made.
Steps to reproduce:
open the link to stackblitz (see below)
click/tap OPEN PICKER button
change the value in the first column
Note that in the console the prevSelected shown is the same as selectedIndex
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
fix(picker-column): prevSelected is set to the correct value (#27458)
thetaPC commentedon May 16, 2023
Thanks for the issue! This has been resolved via PR #27458 and will be available in an upcoming release of Ionic.
thetaPC commentedon May 17, 2023
The fix has been released through v7.0.7!
fix(picker-column): prevSelected is set to the correct value (#27458)
ionitron-bot commentedon Jun 16, 2023
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.