it's a little bit confusing why the value is being written to the `data-value` attribute, then in the case of a select being modified before being written to the dom element's html. Consider adding a comment or reworking the control flow to make this clearer.