typo && set selectedContract onload

pull/1/head
yann300 6 years ago
parent 7c9b07af14
commit b7dfd3bf53
  1. 2
      src/app/tabs/compile-tab.js

@ -152,7 +152,7 @@ class CompileTab {
<div class="input-group-prepend"> <div class="input-group-prepend">
<label class="input-group-text" for="compiledContracts">Contract</label> <label class="input-group-text" for="compiledContracts">Contract</label>
</div> </div>
<select onchange="${e => this.selectContract(e.value)}" id="compiledContracts" class="custom-select"> <select onchange="${e => this.selectContract(e.target.value)}" onload="${e => { this.selectedContract = e.value }}" id="compiledContracts" class="custom-select">
${contractList.map((name) => yo`<option value="${name}">${name}</option>`)} ${contractList.map((name) => yo`<option value="${name}">${name}</option>`)}
</select> </select>
</header> </header>

Loading…
Cancel
Save