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
{{ message }}
This repository has been archived by the owner on Dec 23, 2022. It is now read-only.
Seems, width set to undefined in https://github.com/TeamWertarbyte/material-ui-chip-input/blob/master/src/ChipInput.js#L312 if fullWidth isn't set.
I recommend to initialize structure with if statement instead of explicit using undefined with ternary operator. This prevent rewriting attributes defined in style property.
Another approach is to use style attributes as backup values, but this do impossible to use another extend. The best safe operation is not to initialize the object attribute with any (include undefined) value, as I write above.
The text was updated successfully, but these errors were encountered:
😮 Whoops... I didn't know that Object.assign({foo: 42}, {foo: undefined}) results in {foo: undefined}. I'll change this to an if structure, as you suggested, which will be more readable, too.
Seems, width set to
undefined
in https://github.com/TeamWertarbyte/material-ui-chip-input/blob/master/src/ChipInput.js#L312 iffullWidth
isn't set.I recommend to initialize structure with
if
statement instead of explicit usingundefined
with ternary operator. This prevent rewriting attributes defined instyle
property.Another approach is to use
style
attributes as backup values, but this do impossible to use another extend. The best safe operation is not to initialize the object attribute with any (includeundefined
) value, as I write above.The text was updated successfully, but these errors were encountered: