1rosehip / 1rosehip/jplist-es6
Remove all elements
未关闭
适合新手
- 主要语言
- JavaScript
- 星标
- 83
- 派生
- 37
- PR 合并指标
- 30 天内没有已合并 PR
描述
I am trying to remove elements from the list on a button click. But when I click the button, the last item not deleted. I have to click button 2 times to remove all items.
Can any help? So all items can be removed in a single click. (What's wrong in my code).
https://codepen.io/nasir-mehmood/pen/YbJGog
贡献指南
这个仓库没有索引到贡献指南
调研方向
The issue includes a CodePen link showing the problematic UI. Examine the button click handler and the logic for removing list items. Likely, the loop or DOM update is removing items in a way that skips one. Start by reproducing the bug locally, then debug the removal function to see why it requires two clicks.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- frontend
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 70/100