-
Notifications
You must be signed in to change notification settings - Fork 0
Buggy behaviors in number input #32
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Description
Summary
The slider plugin has several issues that make it difficult for users and developers to use.
Steps to reproduce
First Bug (Video)
This bug happens when the slider's step setting is greater than 1. You won’t see this problem in the current setup because the default settings don’t use a step greater than 1. To see the problem, use the DXPR Builder (mobile branch):
- Switch to the mobile branch.
- Add a new Divider element.
- Turn on Custom Width (which uses a
stepgreater than 1). - Try entering a number like 200 using the keyboard.
Second Bug
This bug stops you from clearing the input field, which causes problems in automated tests (e.g., using Selenium with clear method).
1. Try clearing the input field.
Third Bug
The slider uses a workaround that sends two events to fix a bug in DXPR Builder. This makes debugging and using the slider as a third-party plugin more difficult.
What is the current bug behavior?
- First Bug: The slider doesn’t work well when the
stepis greater than 1, making it hard to type numbers.
2. Second Bug: You can’t clear the input field, making testing harder. - Third Bug: The slider sends two events, making it hard to debug and use with other tools.
What is the expected correct behavior?
- First Bug: You should be able to type numbers easily, even if the
stepis greater than 1.
2. Second Bug: You should be able to clear the input field for testing. - Third Bug: The slider should only send one event, making it easier to debug and use with other tools.
Relevant logs and/or screenshots
- N/A
Possible fixes
- First Bug: Update the slider so you can type numbers even if
stepis greater than 1.
2. Second Bug: Change the slider so it allows the input field to be cleared and keep feature of resetting the slider to default value when the input is cleared. - Third Bug: Fix the event issue in DXPR Builder instead of using a workaround in the slider. Related issue: DXPR Builder Issue #2947.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
