mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 13:00:39 +03:00
Prevent click propagation to tooltip anchor
This commit is contained in:
parent
d54f67ae92
commit
46d8d93c4b
|
@ -10,7 +10,7 @@ interface ConstituentaTooltipProps {
|
||||||
function ConstituentaTooltip({ data, anchor }: ConstituentaTooltipProps) {
|
function ConstituentaTooltip({ data, anchor }: ConstituentaTooltipProps) {
|
||||||
return (
|
return (
|
||||||
<Tooltip clickable anchorSelect={anchor} className='max-w-[30rem]'>
|
<Tooltip clickable anchorSelect={anchor} className='max-w-[30rem]'>
|
||||||
<InfoConstituenta data={data} />
|
<InfoConstituenta data={data} onClick={event => event.stopPropagation()} />
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@ function HelpButton({ topic, ...restProps }: HelpButtonProps) {
|
||||||
<div id={`help-${topic}`} className='p-1'>
|
<div id={`help-${topic}`} className='p-1'>
|
||||||
<BiInfoCircle size='1.25rem' className='clr-text-primary' />
|
<BiInfoCircle size='1.25rem' className='clr-text-primary' />
|
||||||
<Tooltip clickable anchorSelect={`#help-${topic}`} layer='z-modal-tooltip' {...restProps}>
|
<Tooltip clickable anchorSelect={`#help-${topic}`} layer='z-modal-tooltip' {...restProps}>
|
||||||
<div className='relative'>
|
<div className='relative' onClick={event => event.stopPropagation()}>
|
||||||
<div className='absolute right-0 text-sm top-[0.4rem]'>
|
<div className='absolute right-0 text-sm top-[0.4rem]'>
|
||||||
<TextURL text='Справка...' href={`/manuals?topic=${topic}`} />
|
<TextURL text='Справка...' href={`/manuals?topic=${topic}`} />
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user