-
-
Notifications
You must be signed in to change notification settings - Fork 187
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
Add UI to allow user to delete/clear a field value #391
Comments
@fgatti675 great, this would be very useful, because now we must edit changes in firestore. |
Added the clearable prop to string, number and date properties in the latest version :) |
@fgatti675 that's great! Thank you. So, now, if I set:
on a property, it should be able to be cleared? What does the UI look like for that? (Sorry if this is a naive question; I'd done a
and it pulled down version |
Hi, it simply adds a clear icon at the end of the input field, setting the value to |
Can you check if it work in the latest version? :) |
Hi @fgatti675 . I just downloaded |
So we need to add it in multiple field bindings, it might be right in some of them but wrong in others, can you share your exact configuration? |
@fgatti675 Thank you so much for helping with this! I see that example working. I think this might be my misunderstanding about the feature. What I want to be able to do is edit an existing field to clear it. In other words, a user wants to delete a value that's already stored in the database, not clear one as they are entering a new entity (although that's a good feature too). So, in the Collection view, I want to be able to hover over a field (that's Here's a code snippet, in case it helps:
|
Hi @rickpasetto |
@fgatti675 Just read the conversation above and we are looking for the same. |
@fgatti675 just checking in on this issue. Do you need any more information from me? |
@fgatti675 I notice that you answered my original question. I just tried version |
@fgatti675 any progress on this issue? I'm still unable to clear a field of an existing row. |
Generated from #390
When editing a row in a collection, it would be great to be able to clear a field, especially an
enum
field specified byenumValues
. Doing so would remove the field from storage of that entity. If the field is required, it should generate an error. Otherwise, it should be allowed to remove a field that's been set.Hope this is enough information. Thanks @fgatti675 for encouraging filing an Issue.
The text was updated successfully, but these errors were encountered: