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

Chore (toolbox-input): add sanitize method for input #95

Merged
merged 3 commits into from
Oct 30, 2024

Conversation

e11sy
Copy link
Contributor

@e11sy e11sy commented Oct 30, 2024

Problem

default html attributes of the input can not provide correct behaviour of the input
e. g.
in the input for startWith toolbox should be only decimal numbers (without dots and commas)

Solution

Added sanitize attribute to the renderToolboxInput(), which normalizes input.value on every input via sanitize method

src/index.ts Show resolved Hide resolved
@e11sy e11sy merged commit 2f46c0e into release/2.0 Oct 30, 2024
1 check passed
@e11sy e11sy deleted the improve-toolbox-input branch October 30, 2024 18:49
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