element icon indicating copy to clipboard operation
element copied to clipboard

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

Open ankitapatil31 opened this issue 2 years ago • 1 comments

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

ankitapatil31 avatar Jul 11 '22 06:07 ankitapatil31

src="https://unpkg.com/vue/dist/vue.js" 👆it cannot find vue dist resource. using this, it will be ok. or any version with dist at sorce code. -src=https://unpkg.com/[email protected]/dist/vue.js

CNBlackJ avatar Jul 19 '22 09:07 CNBlackJ