mirror of
https://github.com/mattermost/mattermost.git
synced 2026-04-24 23:58:13 -04:00
[MM-67123] fix: change the user at_mention button 'type' attribute to 'button' to avoid triggering message submit
This commit is contained in:
parent
2be57a7ec0
commit
f5f9bfb3d4
1 changed files with 1 additions and 0 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in a new issue