Skip to content

fix: add min/max validation rules to latitude and longitude inputs (#29)#33

Open
prasiddhi-105 wants to merge 1 commit into
umang24-cyber:mainfrom
prasiddhi-105:fix-input-validation
Open

fix: add min/max validation rules to latitude and longitude inputs (#29)#33
prasiddhi-105 wants to merge 1 commit into
umang24-cyber:mainfrom
prasiddhi-105:fix-input-validation

Conversation

@prasiddhi-105

Copy link
Copy Markdown

Description

Fixes issue #29 by enforcing strict client-side boundary validation constraints on coordinate text inputs. This natively intercepts malformed data values at the browser level before bad API payloads reach the backend.

Changes Implemented

  • Added min="-90" and max="90" boundaries to the Latitude input element in ReportForm.jsx.
  • Added min="-180" and max="180" boundaries to the Longitude input element in ReportForm.jsx.

Closes #29

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.

Missing input validation for latitude and longitude in dispatch console

1 participant