Предотвратить фиксированное позиционирование шепота rsuite
Мой код React приведен ниже;
const Speaker = React.forwardRef(({ content, ...props }:any, ref) => {
return (
<Popover ref={ref} title="Title" {...props}>
<p>This is a Popover </p>
<p>{content}</p>
</Popover>
);
});
const CustomComponent = ({ placement }) => (
<Whisper
trigger="click"
placement={placement}
controlId={`control-id-${placement}`}
speaker={<Speaker content={`I am positioned to the ${placement}`} />}
>
<Button appearance="subtle">{placement}</Button>
</Whisper>
);
export function Test(){
return <CustomComponent placement="right" />
}
При прокрутке содержимое всплывающего окна становится фиксированным. Как заставить его двигаться с помощью кнопки toogle