Commit b7dfd3bf authored by yann300's avatar yann300

typo && set selectedContract onload

parent 7c9b07af
...@@ -152,7 +152,7 @@ class CompileTab { ...@@ -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>
......
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