Closed mattbryson closed 9 years ago
Whilst this is kinds of expected, as its a refection of the data, is there any way to NOT store empty data attributes on the DOM if the model value is empty?
Sure -- override update if you're doing something custom. Anything more advanced you should create a Handler for.
update
We can't change it for everyone, because that would break things like inputs or class names where we want to use an empty string for empty values.
Whilst this is kinds of expected, as its a refection of the data, is there any way to NOT store empty data attributes on the DOM if the model value is empty?