You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The autocomplete component uses strict equality checks (===) to check whether an option is currently selected. This works well when strings or numbers are the values but in case of object (e.g. configurable enums) this requires absolute object identity.
This is a problem when we create deep copies of objects because they will fail this equality check. As it is difficult to always remember which objects should be deeply copied and which not, it would be better if this strict equality is not necessary and we rather have a logical equality that e.g. only checks the id property of a configurable enum.
The text was updated successfully, but these errors were encountered:
The autocomplete component uses strict equality checks (
===
) to check whether an option is currently selected. This works well when strings or numbers are the values but in case of object (e.g. configurable enums) this requires absolute object identity.This is a problem when we create deep copies of objects because they will fail this equality check. As it is difficult to always remember which objects should be deeply copied and which not, it would be better if this strict equality is not necessary and we rather have a logical equality that e.g. only checks the
id
property of a configurable enum.The text was updated successfully, but these errors were encountered: