報錯:
Blocked aria-hidden on an element because its descendant retained focus. The focus must not be hidden from assistive technology users. Avoid using aria-hidden on a focused element or its ancestor. Consider using the inert attribute instead, which will also prevent focus. For more details, see the aria-hidden section of the WAI-ARIA specification at https://w3c.github.io/aria/#aria-hidden. Element with focus: input Ancestor with aria-hidden:

 

watch裡給個blur 

done

 

watch: {
tabStatus (status) {
document.activeElement.blur()

 

<el-form-item
label="报表类型:"
align="left"
style="width:100%;"
prop="status"
>
<el-radio v-if="xxx" v-model="tabStatus" label="0">xxx</el-radio>
<el-radio v-if="xxx" v-model="tabStatus" label="1">xxx</el-radio>
<el-radio v-if="xxx" v-model="tabStatus" label="2">xxx</el-radio>
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 MonkeyJ 的頭像
    MonkeyJ

    程式猴

    MonkeyJ 發表在 痞客邦 留言(0) 人氣()