diff --git a/src/app/tabs/runTab/contractDropdown.js b/src/app/tabs/runTab/contractDropdown.js index 79d737dab2..0b4dde64fe 100644 --- a/src/app/tabs/runTab/contractDropdown.js +++ b/src/app/tabs/runTab/contractDropdown.js @@ -68,11 +68,6 @@ class ContractDropdownUI { ` - if (!this.atAddressButtonInput.value) { - this.atAddress.setAttribute('disabled', 'true') - } else { - this.atAddress.removeAttribute('disabled') - } this.selectContractNames.addEventListener('change', this.setInputParamsPlaceHolder.bind(this)) this.setInputParamsPlaceHolder() if (!this.el) { @@ -82,7 +77,11 @@ class ContractDropdownUI { } atAddressChanged (event) { - yo.update(this.el, this.render()) + if (!this.atAddressButtonInput.value) { + this.atAddress.setAttribute('disabled', 'true') + } else { + this.atAddress.removeAttribute('disabled') + } } changeCurrentFile (currentFile) {