Skip to content

Commit e804059

Browse files
LianaHusAniket-Engg
authored andcommitted
fixing placeholder text on current change
1 parent 13d19f0 commit e804059

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { ContractData, FuncABI, OverSizeLimit} from '@remix-project/core-plugin'
66
import * as ethJSUtil from '@ethereumjs/util'
77
import { ContractGUI } from './contractGUI'
88
import { CustomTooltip, deployWithProxyMsg, upgradeWithProxyMsg } from '@remix-ui/helper'
9+
import { title } from 'process'
910
const _paq = window._paq = window._paq || []
1011

1112
export function ContractDropdownUI (props: ContractDropdownProps) {
@@ -233,6 +234,7 @@ export function ContractDropdownUI (props: ContractDropdownProps) {
233234
})
234235
} else{
235236
setCompilerName('')
237+
setContractOptions({title: <FormattedMessage id='udapp.contractOptionsTitle1' />, disabled: true})
236238
}
237239
}
238240

@@ -316,6 +318,7 @@ export function ContractDropdownUI (props: ContractDropdownProps) {
316318
<div id="udappcontractNamesWrapper" className="w-100">
317319
<select ref={contractsRef}
318320
value={currentContract}
321+
name={contractOptions.title.toString()}
319322
onChange={handleContractChange}
320323
className="udapp_contractNames custom-select"
321324
disabled={contractOptions.disabled}
@@ -326,7 +329,7 @@ export function ContractDropdownUI (props: ContractDropdownProps) {
326329
return <option key={index} value={contract.alias}>
327330
{contract.alias} - {contract.file}
328331
</option>
329-
}) }
332+
})}
330333
</select>
331334
</div>
332335
</CustomTooltip>

libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,6 @@ export function ContractGUI (props: ContractGUIProps) {
410410
onClick={handleExpandMultiClick}
411411
>
412412
<button
413-
type="button"
414413
data-id={buttonOptions.dataId}
415414
className={`udapp_instanceButton ${buttonOptions.classList}`}
416415
disabled={props.disabled || (props.inputs !=='' && basicInput === '')}

0 commit comments

Comments
 (0)