Skip to content

Fix options.autofocus=false being discarded - #30

Merged
c-w merged 1 commit into
masterfrom
bugfix/autofocus-value-ignored
Jan 21, 2020
Merged

c-w merged 1 commit into
masterfrom
bugfix/autofocus-value-ignored

Conversation

@c-w

@c-w c-w commented Jan 17, 2020

Copy link
Copy Markdown
Owner

Currently the autofocus option can't be disabled since options.autofocus || true evaluates to true even if the option is explicitly set to false. Using the default value only if the provided value is null fixes the problem.

@c-w
c-w requested a review from boomanaiden154 January 17, 2020 20:06
@c-w
c-w merged commit e89ee8b into master Jan 21, 2020
@c-w
c-w deleted the bugfix/autofocus-value-ignored branch January 21, 2020 17:47
@c-w
c-w removed the request for review from boomanaiden154 January 21, 2020 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant