Increment/Decrement uses the value of the first input
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- frontend
Research direction
Start with the HTML reproduction and the linked JSFiddle, focusing on the increment and set commands applied to the input selection. Verify the behavior by clicking each span and checking whether inputs receive distinct values while the closest input resets to 0; done means the example no longer synchronizes every input to the first value.
Written by the indexing model from the issue text.
Description
On a click action and want to increment values of all inputs and reset the closest input to 0.
I created a fiddle to demonstrate:
https://jsfiddle.net/oj6c53bt/1/
I expect all inputs to have unique values at some point, but all values are synced with the first input of the selection.
<!DOCTYPE html>
<html>
<head>
<title></title>
<script src="https://unpkg.com/hyperscript.org@0.9.8"></script>
</head>
<body>
<span _="on click
increment the value of <input/>
set the value of the next <input/> to 0">Click me third</span>
<input type="number"
value="0"/>
<br/>
<span _="on click
increment the value of <input/>
set the value of the next <input/> to 0">Click me second</span>
<input type="number"
value="0"/>
<br/>
<span _="on click
increment the value of <input/>
set the value of the next <input/> to 0">Click me first</span>
<input type="number"
value="0"/>
</body>
</html>
- Dominant language
- JavaScript
- Stars
- 3.8k
- Forks
- 171
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from bigskysoftware/_hyperscript
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
bigskysoftware/_hyperscript#688 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
bigskysoftware/_hyperscript#678 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
bigskysoftware/_hyperscript#676 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
bigskysoftware/_hyperscript#695 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 62/100
bigskysoftware/_hyperscript#687 ·
All issues in bigskysoftware/_hyperscript
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·