Overview

Prevent navigation in component preview (or even interaction?)

STR:
1. Enable overrides via enabling xb_dev_js_blocks.
2. In the overrides section, click on "Breadcrumb".
3. In the top right preview, you see "Home > News > Business". Click Business.

Expected: Nothing happens.
Current behavior: the iframe navigates to a 404.

Proposed resolution

Prevent links to be clicked? But you might want to be able to expand e.g. an hamburger menu. Maybe we only want to prevent navigation.

User interface changes

The top right preview keeps being a preview.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

penyaskito created an issue. See original summary.

roshni upadhyay made their first commit to this issue’s fork.

roshni upadhyay changed the visibility of the branch 3515615-prevent-navigation-in to hidden.

roshni upadhyay changed the visibility of the branch 3515615-prevent-navigation-in to active.

roshni upadhyay’s picture

Status: Active » Needs review
wim leers’s picture

Title: Prevent navigation in component preview » Prevent navigation in code component preview
Component: User interface » Theme builder
Issue tags: +JavaScript, +stable blocker
wim leers’s picture

Assigned: Unassigned » balintbrews
Status: Needs review » Reviewed & tested by the community
Issue tags: -JavaScript +JavaScript
wim leers’s picture

Title: Prevent navigation in code component preview » Prevent navigation in code component editor preview
Related issues: +#3514481: The navigation prevention inside the preview doesn't always work for code components

Note that this is not the same as #3514481: The navigation prevention inside the preview doesn't always work for code components:

balintbrews made their first commit to this issue’s fork.

balintbrews’s picture

Assigned: balintbrews » Unassigned
Status: Reviewed & tested by the community » Fixed
Issue tags: -stable blocker
wim leers’s picture

Issue tags: +Usability

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.