enhanceSelectElement
does not unset name
as claimed in README
#130
Labels
🐛 bug
Something isn't working the way it should (including incorrect wording in documentation)
The README section for
enhanceSelectElement
states the following:However the code at https://github.com/alphagov/accessible-autocomplete/blob/master/src/wrapper.js#L36 sets it to the same name as the select element unless explicitly overwritten - and it cannot be explicitly set to
''
since that is a falsy value (as per #128)I'm not sure whether the docs or the code are correct in this instance (though my instinct is the code) so haven't PR'ed a fix.
The text was updated successfully, but these errors were encountered: