[state] `bind-for` interpolation converts `0` to empty string
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- frontend
Research direction
Start by reproducing the bind-for interpolation example with sortOrder set to 0, then trace the state interpolation path used for data-order. Done means the rendered a-entity retains the value as "0" rather than an empty string; no file or test path is identified in the issue.
Written by the indexing model from the issue text.
Description
When using string interpolation in bind-for, e.g., data-order="{{sortOrder}}", the value of 0 gets converted to an empty string, rather than returning 0.
initialState: {
users: [
sortOrder: 0,
...
]
}
<a-entity bind-for ...>
<template>
<a-entity data-order="{{sortOrder}}"></a-entity>
</template>
</a-entity>
The above results as below when the value is 0:
<a-entity data-order=""></a-entity>
- Dominant language
- JavaScript
- Stars
- 1.4k
- Forks
- 425
- 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 supermedium/superframe
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
supermedium/superframe#241 ·
-
text-geometry update Open
Difficulty 3/5 1-2 days Newbie friendliness 58/100
supermedium/superframe#352 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
supermedium/superframe#349 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
supermedium/superframe#348 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 45/100
supermedium/superframe#347 ·
All issues in supermedium/superframe
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 ·