Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When Pickr runs in the main window but its elements belong to a same-origin popout, clicking works but dragging, Escape, and outside-click dismissal use the wrong document. The existing
elandcontaineroptions accept elements.Bind interactions after final DOM placement and use the owning document/window for events and positioning. Accept foreign-window elements, including custom buttons. On destruction, remove active drag and numeric-input listeners and cancel pending reposition work.
Reproduce on 1.10.3 at
c2a51fc: load the built UMD bundle in a page, then run this and drag a handle in the popout:Regression:
pnpm test test/owner-document.test.js. Covers main-document controls, popout dragging and keyboard input, dismissal, positioning, and cleanup. Also checkedpnpm lint,pnpm test,pnpm build:lib, andpnpm build:demo.Fixes #359.
Prepared by an automated contribution pipeline that I build and operate (https://github.com/clean99/software-factory); the tests and evidence above were produced by it.