diff --git a/apps/remix-ide-e2e/src/tests/ballot.test.ts b/apps/remix-ide-e2e/src/tests/ballot.test.ts index 87376c1022..9139f1a292 100644 --- a/apps/remix-ide-e2e/src/tests/ballot.test.ts +++ b/apps/remix-ide-e2e/src/tests/ballot.test.ts @@ -153,7 +153,7 @@ module.exports = { }) .waitForElementVisible('*[data-id="scConfigFilePathInput"]', 10000) - .sendKeys('*[data-id="scConfigFilePathInput"]', 'compiler_config.json') + .sendKeys('*[data-id="scConfigFilePathInput"]', 'cf.json') .sendKeys('*[data-id="scConfigFilePathInput"]', browser.Keys.ENTER) .isVisible({ diff --git a/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx b/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx index 0af0ceecd5..7e4a84ed66 100644 --- a/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx +++ b/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx @@ -239,7 +239,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => { } const openFile = async () => { - api.open(configFilePath) + await api.open(configFilePath) } const createNewConfigFile = async () => { @@ -826,7 +826,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
{ (!showFilePathInput && state.useFileConfiguration) && {} : openFile} + onClick={configFilePath === '' ? () => {} : async()=>{ await openFile()}} className="py-2 remixui_compilerConfigPath" >{configFilePath === '' ? 'No file selected.' : configFilePath} } { (!showFilePathInput && !state.useFileConfiguration) && {configFilePath} }