bitovi / bitovi/syn

Is it possible to interact with a radio button via synthetic keyboard?

Open
#80 4 comments 0 reactions 1 assignee Claimed by @lukewhyte View on GitHub
bug
Dominant language
JavaScript
Stars
441
Forks
254
PR merge metrics
No merged PRs in 30d

Description

I'm trying to use `key` or `type` to type tabs and arrow key directions on radio buttons to test their focus and selection behavior, but I'm getting the error:

```
InvalidStateError: Failed to read the 'selectionStart' property from 'HTMLInputElement': The input element's type ('radio') does not support selection.
at undefined
at Error (undefined)
at getSelection (http://localhost:8100/src/external/syn.js:1553:19)
at h.extend._key (http://localhost:8100/src/external/syn.js:2123:116)
at new extend.init (http://localhost:8100/src/external/syn.js:104:27)
at syn (http://localhost:8100/src/external/syn.js:80:20)
```

Which seems to be coming from

```
getSelection(element)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.