Usage with input
Open
- Dominant language
- JavaScript
- Stars
- 423
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
Currently gotem fails when target is input component. I suggest to change [this line](https://github.com/callmecavs/gotem/blob/master/src/gotem.js#L16)
```javascript
range.selectNodeContents(target)
```
to
```javascript
range.selectNode(target)
```
Or even check if node is an input.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at src/gotem.js line 16, where the issue identifies the range selection for the target. Check the input-element case and verify that copying from an input works after the selection behavior is adjusted.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100