[英]How to use tabIndex with jsx?
根據反應文檔,這應該有效。
<div tabIndex="0"></div>
但是當我嘗試這個時,它不起作用,我的輸入現在實際上被跳過了!
我在這里做錯了什么?
<input
tabIndex='0'/>
<input
tabIndex='1'/>
<input
tabIndex='2'/>
您在沒有 n 的情況下輸入了兩次 tabIndex,它應該是:
<CustomRadio
tabIndex='0'/>
<CustomCheckbox
tabIndex='1'/>
<input
tabIndex='2'/>
我認為您可能還需要將這些道具傳遞到您的組件中,傳遞給底層元素
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.