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

Chart Updates Even After Invalid Decimal Input in ChartRedrawView #144

Open
jturfanbasis opened this issue Dec 18, 2024 · 0 comments
Open
Assignees

Comments

@jturfanbasis
Copy link

jturfanbasis commented Dec 18, 2024

Description

When entering a decimal value (e.g., 1.5) in any input field and clicking the "Redraw Chart" button, the chart updates and accepts the invalid input, even though a warning is displayed indicating that the input is not valid.
Additionally, the input field accepts negative numbers, which is not expected.

Steps to Reproduce

  1. Navigate to the page googlecharts > types > ChartRedrawView.java
  2. Enter a decimal value (e.g., 1.5) into one of the input fields
  3. Observe the warning message that appears: "Please enter a valid value. The two nearest valid values are 1 and 2."
  4. Click the "Redraw Chart" button then Observe that the chart updates.

Expected Behavior

The application should not update the chart when an invalid value (e.g., a decimal number) is entered. Instead, it should reject the input and prompt the user to provide a valid value.

Screen.Recording.2024-12-18.151339.mp4
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

No branches or pull requests

2 participants