We don't want submit buttons (#29747)
Otherwise this will submit the form.
This commit is contained in:
@@ -52,6 +52,7 @@ const InviteButton: React.FC<Props> = ({ vm }) => {
|
|||||||
Icon={InviteIcon}
|
Icon={InviteIcon}
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
aria-label={_t("action|invite")}
|
aria-label={_t("action|invite")}
|
||||||
|
type="button"
|
||||||
/>
|
/>
|
||||||
</OptionalTooltip>
|
</OptionalTooltip>
|
||||||
);
|
);
|
||||||
@@ -67,6 +68,7 @@ const InviteButton: React.FC<Props> = ({ vm }) => {
|
|||||||
className="mx_MemberListHeaderView_invite_large"
|
className="mx_MemberListHeaderView_invite_large"
|
||||||
disabled={!vm.canInvite}
|
disabled={!vm.canInvite}
|
||||||
onClick={vm.onInviteButtonClick}
|
onClick={vm.onInviteButtonClick}
|
||||||
|
type="button"
|
||||||
>
|
>
|
||||||
{_t("action|invite")}
|
{_t("action|invite")}
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
Reference in New Issue
Block a user