-
Notifications
You must be signed in to change notification settings - Fork 61
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
Combo box filtering does not work #467
Comments
Thank you for the detailed report and fix :) |
No problem, glad to be of help. The library seems to have a lot of
potential. Thank you for open sourcing it!
P.S. I thought that the line self.placeholder.clone_from(text); is not
necessary as the filter is being set while the combo is being edited -
which means that it is not showing the placeholder.
If the option is changed it sets the placeholder on change so it gets
updated anyway, and if option is not changed and editing is abandoned it
reverts to the previously selected option and also sets the placeholder.
…On Sat, Apr 6, 2024 at 6:37 PM Dr George Atkinson ***@***.***> wrote:
Thank you for the detailed report and fix :)
—
Reply to this email directly, view it on GitHub
<#467 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHVUGCTOLKRO7JVICQV7TB3Y4AQDFAVCNFSM6AAAAABF2O2MFSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBRGEZTGNJQHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Ah yes good spot. It seems that |
Hi, the combobox in demo in the widget gallery example does not filter the options list as I think is intended.
![current_gallery](https://private-user-images.githubusercontent.com/32195338/320209743-8209723a-e184-4e61-aa41-180ec63ddc19.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE0OTc3OTIsIm5iZiI6MTcyMTQ5NzQ5MiwicGF0aCI6Ii8zMjE5NTMzOC8zMjAyMDk3NDMtODIwOTcyM2EtZTE4NC00ZTYxLWFhNDEtMTgwZWM2M2RkYzE5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIwVDE3NDQ1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVmOWJlMmM2YTRhZWVlMmMxM2EzMmU2NDJiYjUxNTU0ZmNkMDM5MjI5Y2U4ZGRhNmM5ZTlhZGRkMzY5NDIyMWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.u1q_xT9rx1WL5-Trrr4-y72Q4pnMt5RzazeFuSr9Oxk)
It looks like this:
After changing https://github.com/vizia/vizia/blob/main/crates/vizia_core/src/views/combobox.rs#L199
to
self.filter_text.clone_from(text);
it works as expected.
The text was updated successfully, but these errors were encountered: