Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Empty maxlength fails validation #2047

Open
@locomo

Description

@locomo

Subject of the issue

Error thrown on text inputs when maxlength attribute has no value:
"Please enter no more than 0 characters."

Your environment

  • 1.16.0
  • Safari 10.1.2, Chrom 58

Steps to reproduce

https://jsfiddle.net/t80x2L2a/

Input fields with maxlength attribute but no value fail validation

Expected behaviour

If maxlength attribute has no value then it should not (and cannot) be compared to the length of the field

Actual behaviour

length is compared to param (length <= param) but this will always return false if param is empty

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp