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

Support more HTML input types. Close #800 #808

Merged
merged 3 commits into from
May 4, 2022

Conversation

obetomuniz
Copy link
Collaborator

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If adding a new feature, the PR's description includes:

  • A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Other information:

This PR introduces a logical way to support HTML input types that don't have native support for the setSelectionRange API. This built-in support was initially requested in #800.

As an initial proposal, while reviewing the code, try to also think if makes sense to support it as an internal capability of the library.

For me, add this internally makes sense once it improves the developer experience abstracting business logic to support a default user behavior that allows the user to copy input values without concern about the type.

@obetomuniz obetomuniz force-pushed the feat/support-more-input-types branch from 055b664 to c16f99a Compare May 3, 2022 15:26
@@ -51,5 +51,19 @@ describe('ClipboardActionCopy', () => {

assert.equal(selectedText, text);
});

it.only('should select its value based on text', () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just remember to remove the it.only.

Copy link
Collaborator

@helderberto helderberto left a comment

Choose a reason for hiding this comment

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

Great work! Just a small thing in the test file.

@helderberto helderberto self-requested a review May 3, 2022 16:08
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.

2 participants