umbraco / Umbraco.UIBuilder.Issues

Back office UI builder for Umbraco
3 stars 2 forks source link

Boolean property not rendered correctly with .AddFilterableProperty(p => p.BooleanField #63

Closed matt-tolliday-iss closed 10 months ago

matt-tolliday-iss commented 11 months ago

Describe the bug When using FilterableProperty with a boolean type, the rendered UI component is a free text field, which is not suitable.

Steps To Reproduce Steps to reproduce the behavior:

  1. Configure a bool property with .AddFilterableProperty(p => p.BooleanField)
  2. Field is rendered with a text box

Expected behavior Should be rendered with a radio/picker suitable for boolean value that binds to a bool property.

Screenshots If applicable, add screenshots to help explain your problem.

matt-tolliday-iss commented 11 months ago

@mattbrailsford would there be any update on this at all please?

mattbrailsford commented 11 months ago

Hey @matt-tolliday-iss not at the moment. It’s been a pretty hectic couple of weeks, hopefully getting back to normal next week.

It is in my sprint plan though so it’s not been forgotten about.

mattbrailsford commented 11 months ago

So I've made an update that should be on the unstable build shortly https://nuget.outfield.digital/unstable/v3/index.json

This should be able to handle booleans, however it does so in a specific way. Which is if the boolean flag is true, it will affect the results, but if it's false, it won't apply a negative filter. Give it a try and let me know if this works for you.

matt-tolliday-iss commented 11 months ago

Fantastic @mattbrailsford - exactly what was needed!

mattbrailsford commented 10 months ago

This was pushed out in 1.6.6 a few days ago