Skip to content

Input: move duplicate code to utils #5171

@benelan

Description

@benelan

Description

As we split Input into multiple components by type (Input Number, Input Text, Input Time, etc.) we are starting to get a lot of duplicate code. We should move the duplicate code to a new util: src/utils/input.ts.

Proposed Advantages

It will make bugs easier to fix in the future when everything is in one place.

Which Component

  • calcite-input
  • calcite-input-text
  • calcite-input-number
  • calcite-input-time (once @eriklharper is done)

Any new calcite-input- components we create should use the utils.

Relevant Info

No response

Metadata

Metadata

Assignees

Labels

1 - assignedIssues that are assigned to a sprint and a team member.Calcite (dev)Issues logged by Calcite developers.estimate - 8Requires input from team, consider smaller steps.low riskIssues with low risk for consideration in low risk milestonesp - lowIssue is non core or affecting less that 10% of people using the libraryrefactorIssues tied to code that needs to be significantly reworked.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions