Skip to content

Buggy behaviors in number input #32

@mohamedhyouns

Description

@mohamedhyouns

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):

  1. Switch to the mobile branch.
  2. Add a new Divider element.
  3. Turn on Custom Width (which uses a step greater than 1).
  4. 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.

image

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?

  1. First Bug: The slider doesn’t work well when the step is greater than 1, making it hard to type numbers.
    2. Second Bug: You can’t clear the input field, making testing harder.
  2. Third Bug: The slider sends two events, making it hard to debug and use with other tools.

What is the expected correct behavior?

  1. First Bug: You should be able to type numbers easily, even if the step is greater than 1.
    2. Second Bug: You should be able to clear the input field for testing.
  2. 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

  1. First Bug: Update the slider so you can type numbers even if step is 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.
  2. Third Bug: Fix the event issue in DXPR Builder instead of using a workaround in the slider. Related issue: DXPR Builder Issue #2947.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions