Skip to content

Commit

Permalink
Allow an empty defaultValue option for enhanceSelectElement
Browse files Browse the repository at this point in the history
The check for a default value option matches false-y values, but that also catches the case where the default value is explicitly set to an empty string.

Add an extra condition for the case where the default value is '' so that it is not overwritten with the content of the first `<option>`.
  • Loading branch information
lennym committed May 12, 2017
1 parent 4decb3a commit 4957ffb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.

0 comments on commit 4957ffb

Please sign in to comment.