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

[Bug]: Missing autoCorrect and minLength properties in inputProperties and textAreaProperties #33614

Closed
2 tasks done
TomSoftwerft opened this issue Jan 11, 2025 · 1 comment · Fixed by #33642
Closed
2 tasks done

Comments

@TomSoftwerft
Copy link

TomSoftwerft commented Jan 11, 2025

Component

Input, TextArea

Package version

9.56.8

React version

18.3.1

Environment

System:
    OS: Linux 6.8 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
    CPU: (16) x64 12th Gen Intel(R) Core(TM) i7-1260P
    Memory: 37.30 GB / 62.51 GB
    Container: Yes
    Shell: 5.8.1 - /usr/bin/zsh
  Browsers:
    Chrome: 131.0.6778.204
    Chromium: 131.0.6778.85

Current Behavior

Some properties passed to Input and TextArea components are removed and not added to the rendered HTML.

List of missing properties for my usecases:

  • autoCorrect
  • minLength

Expected Behavior

Accept more HTML attributes in inputProperties and textAreaProperties.

Reproduction

https://stackblitz.com/edit/chnof3md?file=src%2Fexample.tsx

Steps to reproduce

  1. make sure the input is rendered (was a little buggy for me)
  2. inspect the HTML
  3. see that only maxlength added to input HTML

Image

Current workaround used:

<Input
        id={inputId}
        {...props}
        input={{
          autoCorrect: 'on',
          maxLength: 50,
          minLength: 12,
        }}
      />

https://stackblitz.com/edit/g5r4gtli?file=src%2Fexample.tsx

Image

Are you reporting an Accessibility issue?

None

Suggested severity

Medium - Has workaround

Products/sites affected

No response

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.
@dmytrokirpa
Copy link
Contributor

Hey @TomSoftwerft, thanks for filing the issue! I took a quick look, and it seems like the autoCorrect property is experimental and not widely supported by browsers. I'll double-check this with the team. As for the minLength property, we'll be adding it soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment