Decathlon / Decathlon/vitamin-web

bug: (@vtmn/svelte): VtmnListItem component tabindex yields the value false

Open
#1,489 1 comment 0 reactions 0 assignees View on GitHub
bug 🐛 community 👥 Svelte 🟠
Dominant language
HTML
Stars
287
Forks
76
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
In the VtmnListItem component the anchor tag has a parameter tabindex which is validating with the value of disabled. If the disabled is true the tabindex is -1 but if the disabled is false the value of the tabindex is false instead 0. Please do the necessary changes

tabindex={disabled && -1}
**Steps to reproduce**
We can reproduce this in all decathlon search pages wherever the list is displayed

**Expected behavior**

**Browsers affected**

**Version affected**

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.