Commit 36533f38 authored by LianaHus's avatar LianaHus

remove update with yo. needs refactoring later1

parent 02acf8e4
...@@ -68,11 +68,6 @@ class ContractDropdownUI { ...@@ -68,11 +68,6 @@ class ContractDropdownUI {
</div> </div>
</div> </div>
` `
if (!this.atAddressButtonInput.value) {
this.atAddress.setAttribute('disabled', 'true')
} else {
this.atAddress.removeAttribute('disabled')
}
this.selectContractNames.addEventListener('change', this.setInputParamsPlaceHolder.bind(this)) this.selectContractNames.addEventListener('change', this.setInputParamsPlaceHolder.bind(this))
this.setInputParamsPlaceHolder() this.setInputParamsPlaceHolder()
if (!this.el) { if (!this.el) {
...@@ -82,7 +77,11 @@ class ContractDropdownUI { ...@@ -82,7 +77,11 @@ class ContractDropdownUI {
} }
atAddressChanged (event) { atAddressChanged (event) {
yo.update(this.el, this.render()) if (!this.atAddressButtonInput.value) {
this.atAddress.setAttribute('disabled', 'true')
} else {
this.atAddress.removeAttribute('disabled')
}
} }
changeCurrentFile (currentFile) { changeCurrentFile (currentFile) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment