Closed mwcraig closed 3 months ago
good spot - I think must have happened when I introduced this: https://github.com/maxfordham/ipyautoui/blob/a01a438d8bb436818bcc7f4101ff8a07f1a1be4d/src/ipyautoui/automapschema.py#L966 which drops kwargs that aren't traits for within the init argspec (I think I added it to silence traitlets warnings...) I've updated the init in my wrapper to have the same args as the orginal now to ensure that all the args are passed along... this will be sorted in the next release
Describe the bug
When a field with type
Path
is annotated withField
that includefilter_pattern
as part ofjson_schema_extra
thefilter_pattern
is not set on theFileChooser
UI.To Reproduce This code will reproduce the issue. When you click on "Select" in the
FileChooser
all files are shown, not just those ending in*.pynb
:Also,
print(ui.di_widgets['some_file'].filter_pattern)
givesNone
.Expected behavior
Only folders and files that end in
*.ipynb
should be displayed in theFileChooser
andprint(ui.di_widgets['some_file'].filter_pattern)
should give["*.ipynb"]
Screenshots
The screenshot below shows what is displayed in the
FileChooser
when I run it. Note that non-notebook files are shown.Additional context
NA