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

Should not be able to type on inert items #1215

Open
codingedgar opened this issue May 15, 2024 · 0 comments
Open

Should not be able to type on inert items #1215

codingedgar opened this issue May 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@codingedgar
Copy link

Reproduction example

storybookjs/storybook#27138

Prerequisites

<form inert="true">
      <input placeholder="not focusable" />
</form>

should not be able to click, focus or write with

await expect(input).toBeEnabled();
await userEvent.type(input, 'can write');

Expected behavior

If an element is inert it should fail to write and fail expects

Actual behavior

nothing happens

User-event version

14.5.2

Environment

Testing Library framework: @testing-library/react@13.4.0

JS framework: react@18.3.1

Test environment: vitest@1.4.0

DOM implementation: happy-dom@13.8.6

Additional context

storybookjs/storybook#27138

capricorn86/happy-dom#1422

jsdom/jsdom#3605

@codingedgar codingedgar added bug Something isn't working needs assessment This needs to be looked at by a team member labels May 15, 2024
@ph-fritsche ph-fritsche removed the needs assessment This needs to be looked at by a team member label Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants