From cfc338f433325316b439c0ca479ed1c7c7d79f75 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 13 Oct 2021 23:31:51 +0200 Subject: [PATCH] don't reset udapp when non-sol file are selected --- apps/remix-ide/src/app/tabs/runTab/contractDropdown.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/remix-ide/src/app/tabs/runTab/contractDropdown.js b/apps/remix-ide/src/app/tabs/runTab/contractDropdown.js index e66ad8a5b8..a111147672 100644 --- a/apps/remix-ide/src/app/tabs/runTab/contractDropdown.js +++ b/apps/remix-ide/src/app/tabs/runTab/contractDropdown.js @@ -218,11 +218,12 @@ class ContractDropdownUI { if (this.selectContractNames.value === '') this.enableAtAddress(false) } else { this.loadType = 'other' - this.createPanel.style.display = 'none' - this.orLabel.style.display = 'none' - this.compFails.style.display = 'none' - this.contractNamesContainer.style.display = 'none' + this.createPanel.style.display = 'block' + this.orLabel.style.display = 'block' + this.contractNamesContainer.style.display = 'block' + this.selectContractNames.style.display = 'block' this.abiLabel.style.display = 'none' + if (this.selectContractNames.value === '') this.enableAtAddress(false) } }