報錯:
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>
全站熱搜