Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix / Support data-placeholder values which consist solely of digits #6297

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

billynoah
Copy link

This pull request includes a

  • Bug fix

The following changes were made

Validate placeholder type as an object instead of checking if it is a string. This fixes a bug where placeholder is defined as an inline attribute data-placeholder which consists solely of digits. In this case the value type becomes a number which breaks the test typeof placeholder === 'string' and causes the placeholder to get ignored.

Validate placeholder as an object
Validate placeholder as an object
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.

None yet

1 participant