gururajbm / custom-select-tdd

Prefer that non-interactive, visible elements (such as <div>) that have click handlers use the role attribute JS-0765
Anti-pattern
Minor
a year agoa year old
Avoid non-native interactive elements. If using native HTML is not possible, add an appropriate role and support for tabbing, mouse, keyboard, and touch inputs to an interactive content element
 9        return (
10            <div data-test="tag-list" key={index} className="tag-sel-item">
11                {item.label}
12                <span13                    data-test="tag-delete"14                    className="tag-close-btn"15                    onClick={(e) => { handleTagRemove(item.value); }}16                ></span>17            </div>
18        );
19    });