Closed smee closed 3 years ago
What is the rationale behind the 'javascript:' href? Could we do without? The comment says
Required to make this anchor appear in the tab order
I'm not sure what this means.
When a page is viewed in browser, pressing tab will cycle through giving focus to anchor tags or giving focus to various inputs (try it in the demo app). Since the markup for this widget doesn't use any input elements (it looks to be plain spans and divs) the href is required.
From what I gather here, providing a default value of 0 for tab-index could resolve the problem. All elements with tabindex=0 are inserted into the tab order according to their source order.
It seems this warning still exists on the latest version of re-com.
Yes, it does...will release a new version with this fix soon.
Dropdown currently uses a link with a 'javascript:' href, see dropdown.cljs#L171. React 16.12.0 shows the following warning:
What is the rationale behind the 'javascript:' href? Could we do without? The comment says
I'm not sure what this means.