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

fix(input-time-picker): retain focus inside the input when clicked #10729

Merged
merged 121 commits into from
Nov 15, 2024

Conversation

eriklharper
Copy link
Contributor

Related Issue: #10668

Summary

This restores the original focus behavior when clicking the input in input-time-picker. Focus remains in the input for typing and selecting text.

jcfranco and others added 30 commits November 4, 2024 08:40
**Related Issue:** #10482

## Summary

- **build: update browserslist db (#10629)**
- **docs(angular): update example to use custom elements directly
(#10686)**
- **build(deps): update dependency @floating-ui/dom to v1.6.12
(#10681)**
- **build(deps): update dependency @cspell/eslint-plugin to v8.15.6
(#10680)**
- **build(deps): update dependency chokidar to v4 (#10643)**

---------

Co-authored-by: Calcite Admin <[email protected]>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…10649)

**Related Issue:** #10495

## Summary

Split up table rendering to bypass HTML parser corrections that would
break functionality and styling.
* skipped floating-ui.spec > "debounces positioning per instance"
Copy link
Member

@driskull driskull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm good with this as an internal property for now. 👍

@jcfranco
Copy link
Member

I'm also in agreement to proceed with this as an internal prop for now.

This might be useful for other component authors down the line. Introducing a focusTrapOptions prop with a subset of options, might offer more flexibility to devs, but we might need to wait until more use cases come up.

.vscode/launch.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
…riklharper/10668-input-time-picker-focus-bug
Base automatically changed from lumina to dev November 15, 2024 04:47
@jcfranco jcfranco force-pushed the eriklharper/10668-input-time-picker-focus-bug branch from eb9ac44 to 1bb8b68 Compare November 15, 2024 07:22
@github-actions github-actions bot added the bug Bug reports for broken functionality. Issues should include a reproduction of the bug. label Nov 15, 2024
…b.com:Esri/calcite-design-system into eriklharper/10668-input-time-picker-focus-bug
Copy link
Member

@jcfranco jcfranco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

* Specifies whether focus should move to the popover when the focus trap is activated.
* `@internal`
*/
@property({ type: Boolean }) initialFocusTrapFocus: FocusTargetOrFalse;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WDYT about focusTrapInitialFocus? I'll leave it up to you.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

woops, didn't see this comment. Ah well

@eriklharper eriklharper added the pr ready for visual snapshots Adding this label will run visual snapshot testing. label Nov 15, 2024
@eriklharper eriklharper merged commit 96e196b into dev Nov 15, 2024
13 checks passed
@eriklharper eriklharper deleted the eriklharper/10668-input-time-picker-focus-bug branch November 15, 2024 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug reports for broken functionality. Issues should include a reproduction of the bug. pr ready for visual snapshots Adding this label will run visual snapshot testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants