Closed codingwithswapnil closed 4 years ago
https://codesandbox.io/s/hidden-haze-tz6u8
Try getContainer
.
Thank you very much for your help.
One more query here is if we are on Modal and using Anchor, the links on the left are having Links with HASH keys, and clicking on those, it changes the URL's hash part and so it closes modal, rather it should only scroll to the HASH which is default behavior of HTML.
Reproduction link
Steps to reproduce
Clicking on Show Modal should work like https://ant.design/components/anchor/#Link-Props where we need to keep menus static and other content should scroll as per id of the div with #
What is expected?
Clicking on Show Modal should work like https://ant.design/components/anchor/#Link-Props where we need to keep menus static and other content should scroll as per id of the div with #
What is actually happening?
Clicking on show modal is just rendering normal page and its not adding ant-affix class after scrolling and so inline style attributes as well.