fix: Move picker search props into shared models dialog mixin#8054
fix: Move picker search props into shared models dialog mixin#8054distantnative merged 1 commit intodevelop-patchfrom
Conversation
|
@afbora lookjbg at your changes it looks to me like we could add it centrally to ModelDialogProps instead three times individually? |
import { props as ModelsDialogProps } from "./ModelsDialog.vue";kirby/panel/src/components/Dialogs/ModelsDialog.vue Lines 45 to 74 in e3721bb @distantnative That’s why I added the definitions in the three wrapper dialogs for now. The cleaner alternative would be to move the relevant search props directly into the shared What do you think? |
|
@afbora you should be able to add the search mixin to const props in ModelsDialog. |
|
@distantnative Oh, that’s interesting. I assumed that since search mixin was already included in the default export, adding it again to the shared props constant wouldn’t make a difference. Should search mixin stay in the default export as well, or is adding it only to that shared props constant enough? |
e859f71 to
84209e6
Compare
|
Now I've implemented @distantnative suggestion. Now ready to review @getkirby/frontend |
|
@afbora Could you please add a test case for files, pages and users field in the sandbox blueprints? |
|
@distantnative Done via getkirby/sandbox#28 |
|
Thank you, works for me |
Description
This fixes
search: falsefor picker fields likefiles,pages, andusers.The problem was that the search prop got lost in the wrapper dialogs before it reached the shared models dialog. I fixed it by moving the
Searchmixin into the shared props export inModelsDialog.vue, so the wrapper dialogs receive it as well.Changelog
🐛 Bug fixes
search: falseoption now works as expected Fieldtype files: setting search to false does not hide search #8053Docs
For review team