fix: align camera model drop down behavior with other drop downs on web and mobile (#11951)

* fix(web): align search filter behavior to show all camera models

* fix(mobile): align search filter behavior to clear camera model when make is set

* (mobile) correctly clear the model controller

* fix(mobile) re-add text controller to dropdown

---------

Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
Christopher Makarem 2024-08-24 22:00:15 -07:00 committed by GitHub
parent 7a4fccb1b2
commit b41af65997
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 4 deletions

View file

@ -18,13 +18,12 @@
$: makeFilter = filters.make;
$: modelFilter = filters.model;
$: handlePromiseError(updateMakes(modelFilter));
$: handlePromiseError(updateMakes());
$: handlePromiseError(updateModels(makeFilter));
async function updateMakes(model?: string) {
async function updateMakes() {
const results: Array<string | null> = await getSearchSuggestions({
$type: SearchSuggestionType.CameraMake,
model,
includeNull: true,
});