Empty Value Should Remove Inline CSS Style

When I add a select dropdown attribute to a block to output an inline CSS style, the “style” tag does not show up when the value is empty (as expected). After I choose an option from the dropdown, the style tag with its value gets added (as expected). But if I move the select option back to nothing (-) in the dropdown, the style attribute stays on the element with an empty value like this: style=“text-align:”

It would be best if it removed the style tag altogether since there is no/null value.