Disable auto-focus on compilation finished.

pull/2240/head
David Disu 3 years ago committed by yann300
parent bad5b6e7fc
commit 0935f206ab
  1. 5
      libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx

@ -110,10 +110,7 @@ export function ContractDropdownUI (props: ContractDropdownProps) {
const contract = contracts.find(contract => contract.alias === selectedContract)
if (!selectedContract || !contract) setSelectedContract(contracts[0].alias)
contractsRef.current.focus()
setTimeout(() => {
contractsRef.current.blur()
}, 1000)
// TODO highlight contractlist box with css.
}
}

Loading…
Cancel
Save