fix tooltip for disabled method call buttons

pull/3931/merge
Aniket-Engg 1 year ago committed by Aniket
parent d737ddc5cb
commit 611036f49d
  1. 18
      libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx

@ -271,13 +271,6 @@ export function ContractGUI (props: ContractGUIProps) {
<div
className="udapp_contractActionsContainerSingle pt-2"
style={{ display: toggleContainer ? "none" : "flex" }}
>
<CustomTooltip
delay={0}
placement={"right"}
tooltipClasses="text-wrap"
tooltipId="remixUdappInstanceButtonTooltip"
tooltipText={toggleUpgradeImp && !proxyAddress ? 'Proxy address cannot be empty' : (props.inputs !=='' && basicInput === '') ? 'Input required' : buttonOptions.title}
>
<div
className='d-flex'
@ -289,10 +282,17 @@ export function ContractGUI (props: ContractGUIProps) {
data-title={buttonOptions.title}
disabled={(toggleUpgradeImp && !proxyAddress) || props.disabled || (props.inputs !=='' && basicInput === '')}
>
{title}
<CustomTooltip
delay={0}
placement={"right"}
tooltipClasses="text-wrap"
tooltipId="remixUdappInstanceButtonTooltip"
tooltipText={toggleUpgradeImp && !proxyAddress ? 'Proxy address cannot be empty' : (props.inputs !=='' && basicInput === '') ? 'Input required' : buttonOptions.title}
>
<div>{title}</div>
</CustomTooltip>
</button>
</div>
</CustomTooltip>
<input
className="form-control"
data-id={

Loading…
Cancel
Save