Skip to content

required filed of ListboxInput does not work #963

Open
@gkuga

Description

🐛 Bug report

Current Behavior

Setting the required field of ListboxInput to true will not generate a warning when the field is not yet filled in.

Expected behavior

Submitting without empty input needs to show warning message.

image

Reproducible example

https://codesandbox.io/s/bugreport-6ktgns?file=/src/index.js

Suggested solution(s)

readOnly
required={required}
tabIndex={-1}
type="hidden"

If required field is set, remove readonly and hidden. And input tags should be hidden by opacity, etc.

Additional context

Your environment

Software Name(s) Version
Reach Package ^0.17.0
React ^17.0.2
Browser
Assistive tech
Node
npm/yarn
Operating System linux

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions