[MM-67123] fix: change the user at_mention button 'type' attribute to 'button' to avoid triggering message submit

This commit is contained in:
Shahzaib 2026-03-09 02:53:29 +01:00
parent 2be57a7ec0
commit f5f9bfb3d4

View file

@ -128,6 +128,7 @@ export function ProfilePopoverController<TriggerComponentType = HTMLSpanElement>
ref={refs.setReference}
className={props.triggerComponentClass}
style={props.triggerComponentStyle}
type={TriggerComponent === 'button' ? 'button' : undefined}
{...getReferenceProps()}
>
{props.children}