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 <div
className="udapp_contractActionsContainerSingle pt-2" className="udapp_contractActionsContainerSingle pt-2"
style={{ display: toggleContainer ? "none" : "flex" }} 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 <div
className='d-flex' className='d-flex'
@ -289,10 +282,17 @@ export function ContractGUI (props: ContractGUIProps) {
data-title={buttonOptions.title} data-title={buttonOptions.title}
disabled={(toggleUpgradeImp && !proxyAddress) || props.disabled || (props.inputs !=='' && basicInput === '')} 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> </button>
</div> </div>
</CustomTooltip>
<input <input
className="form-control" className="form-control"
data-id={ data-id={

Loading…
Cancel
Save