Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(pointer): move focus in shadow DOM #1038

Open
wants to merge 37 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
f424284
Potentially fix paste
Christian24 Aug 7, 2022
cb2b181
Fixed cut, paste and copy for open shadow dom
Christian24 Aug 8, 2022
7c53b38
Merge branch 'main' into main
Christian24 Aug 12, 2022
9771c98
Resolve conflicts
Christian24 Aug 12, 2022
79cb759
Update tests/dom/customElement.ts
Christian24 Aug 14, 2022
1d4dd4b
Moved Shadow DOM tests. Added focus and selection support for shadow …
Christian24 Aug 14, 2022
64e51e9
Added some tests for getActiveElement
Christian24 Aug 14, 2022
87b9e00
Added some tests for getActiveElement
Christian24 Aug 14, 2022
1a187e0
Fix type import
Christian24 Aug 15, 2022
dbed101
Update tests/utils/focus/getActiveElement.ts
Christian24 Aug 15, 2022
ddb525b
Fix type import
Christian24 Aug 15, 2022
e04b47b
Merge branch 'main' of https://github.com/Christian24/user-event into…
Christian24 Aug 15, 2022
3d00cb7
Add helper to define element. Remove describe block
Christian24 Aug 15, 2022
a651641
Use getActiveElementOrBody
Christian24 Aug 15, 2022
7f22d6a
Update tests/utils/focus/getActiveElement.ts
Christian24 Aug 15, 2022
0974cd0
Make focusing custom elements safer
Christian24 Aug 15, 2022
a6cebff
Update tests/utils/focus/getActiveElement.ts
Christian24 Aug 16, 2022
11b44c5
Remove test
Christian24 Aug 16, 2022
188b250
Removed types
Christian24 Aug 16, 2022
5f6d6d0
Add focus helper
Christian24 Aug 16, 2022
a981057
Delete test
Christian24 Aug 16, 2022
63d5586
Improve focus handling for setup
Christian24 Aug 16, 2022
67858c1
Improve focus handling for setup Add test for keyboard input on open …
Christian24 Aug 16, 2022
e05e521
Improve focus handling for setup
Christian24 Aug 16, 2022
0e07093
ease setting up tests
ph-fritsche Aug 18, 2022
7a1e5c9
clean up import
ph-fritsche Aug 18, 2022
cbe1391
prevent accidental import of wrong util
ph-fritsche Aug 18, 2022
6ecc7cc
add query helper
ph-fritsche Aug 18, 2022
3950800
test: move focus per mousedown in shadow DOM
ph-fritsche Aug 18, 2022
50a43ff
handle shadow hosts when moving focus
ph-fritsche Aug 19, 2022
3d036b9
use util in test setup
ph-fritsche Aug 19, 2022
63d0855
clean up
ph-fritsche Aug 19, 2022
57585a2
clean up
ph-fritsche Aug 19, 2022
640700d
refactor and guard against invalid `tabindex`
ph-fritsche Aug 19, 2022
1ff9665
fix comment
ph-fritsche Aug 19, 2022
22c0234
comment typo
ph-fritsche Aug 19, 2022
b322220
comment
ph-fritsche Aug 19, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update tests/dom/customElement.ts
Co-authored-by: Philipp Fritsche <ph.fritsche@gmail.com>
  • Loading branch information
Christian24 and ph-fritsche authored Aug 14, 2022
commit 79cb759501efdb226896e58866aa27b1a202d937
3 changes: 2 additions & 1 deletion tests/dom/customElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ test('Render open shadow DOM element - type', async () => {
expect((element as ShadowInput).value).toEqual('test')
})

test('Render open shadow DOM element - copy', async () => {
describe('on shadow DOM', () => {
test('copy', async () => {
const {element, user} = setup('<shadow-input></shadow-input>', {
focus: false,
})
Expand Down