Prevented page scrolling after consent has been made#107
Conversation
…gs modal that was opened through an element created by the "Settings modal trigger selector" option
WalkthroughA new entry was added to the changelog documenting a fix that prevents page scrolling after user consent is given via a settings modal triggered by a specific selector. In the implementation, the click event handler for the modal trigger link now removes focus from the link before opening the settings modal, by calling Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant LinkElement
participant CookieConsentWrapper
User->>LinkElement: Click
LinkElement->>LinkElement: Prevent default
LinkElement->>LinkElement: blur()
LinkElement->>CookieConsentWrapper: showSettings(0)
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🔇 Additional comments (2)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit