Skip to content

fix previewing with initial invalid selector#130

Closed
djanhjo wants to merge 1 commit intodevelopfrom
dan.ho_live-preview-no-selector
Closed

fix previewing with initial invalid selector#130
djanhjo wants to merge 1 commit intodevelopfrom
dan.ho_live-preview-no-selector

Conversation

@djanhjo
Copy link
Copy Markdown
Contributor

@djanhjo djanhjo commented Mar 25, 2026

When a Live Preview session is triggered by "Or select target" and the initial selector is empty or invalid, the Preview Bar fails to load.


Note

Medium Risk
Changes message rendering decisions during preview sessions (fallbacking to overlay and skipping tooltip errors) and adds new picker-state checks, which could affect how/when messages display in edge cases.

Overview
Fixes Live Preview sessions that start with an empty/invalid target selector by ensuring the message iframe can still mount and the preview bar can activate the element picker.

In message-manager, missing inline targets in preview now fallback to overlay rendering, and tooltip target validation/errors are relaxed in preview (including skipping tooltip reset/errors so the picker can take over). Rendering on routeLoaded now checks isPreviewPickerActive() to avoid showing the fallback message behind the picker.

In preview-bar-manager, isReadyToApply now treats $element_id as an invalid placeholder, tooltip/inline share the same selector controls, and the bar will auto-activate the picker whenever settings aren’t ready (including during initial step/type overrides).

Written by Cursor Bugbot for commit feb8077. This will update automatically on new commits. Configure here.

@djanhjo djanhjo requested a review from a team as a code owner March 25, 2026 02:52
@djanhjo djanhjo closed this Mar 25, 2026
@djanhjo djanhjo deleted the dan.ho_live-preview-no-selector branch March 25, 2026 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant