ElemeFE / ElemeFE/element

[Bug Report] how to access el-button in JS

Open
#21,987 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

### Element UI version
2.15.1

### OS/Browsers version
Chrome Version 103.0.5060.114 (Official Build) (64-bit)

### Vue version
2.6.10

### Reproduction Link
https://codepen.io/ziyoung/pen/LKNBqB

### Steps to reproduce
var nodes = document.getElementsByTagName("el-button");
for(var i = 0; i < nodes.length; i ){
nodes[i].disabled = true;
}

### What is Expected?
el-button element should be access in js/jQuery

### What is actually happening?
I am getting null value

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.