Open elshadsm opened 5 years ago
The picker drop down is actually similar to dialog (it is a Window) on android. just overlaying the current page with a new page does not change the appearance of the picker window. Some extra measures would need to be taken.
It’s the same case on iOS. I would rather think about new API which would allow you checking the state and toggling the visibility of the dropdown than hiding it automatically.
I have made a workaround in native code where setting visible
to false
will dispose of picker.
@patrykmol That would be correct. I would also expect that setting enabled
to false would close the picker.
@mpost I made enabled
to dismiss Picker
when it's set to false
.
@elshadsm @mpost Is this issue still valid after these fixes? Please close if it's no longer valid.
@patrykmol I would think it is still valid. When covering the Picker
with another view, the "selection ui element" is still visible. Since the "selection ui" is not connected to the actual Picker
, we should add API to close the picker. As mentioned before, this should automatically happen when the Picker
is disabled, made invisible, removed from the parent or disposed.
Problem description
When a picker is expanded and no interaction is performed until a new page is opened, the picker-dropdown still appears on the new page.
Expected behavior
The picker-dropdown must not be displayed in other pages.
Environment
Code snippet
iOS
Android