Skip to content

fix(auth): improve Ionic input handling and add form validation#64

Open
yashisrani wants to merge 1 commit into
seetadev:mainfrom
yashisrani:fix/login-form
Open

fix(auth): improve Ionic input handling and add form validation#64
yashisrani wants to merge 1 commit into
seetadev:mainfrom
yashisrani:fix/login-form

Conversation

@yashisrani
Copy link
Copy Markdown

Summary

This PR improves the login form implementation by fixing Ionic input handling issues, adding proper validation, and improving TypeScript typings.

Changes Made

  • Replaced onIonChange with onIonInput for proper real-time input updates
  • Updated incorrect e.target.value usage to e.detail.value (Ionic v7 compatible)
  • Added proper input types:
    • type="email"
    • type="password"
  • Added basic form validation:
    • Prevent empty email/password submissions
    • Added minimum password length validation
  • Removed unused MouseEventHandler import
  • Improved function typing:
    • From Function
    • To (email: string, password: string) => void

Screenshots

Screenshot 2026-05-12 at 9 09 44 AM Screenshot 2026-05-12 at 9 10 03 AM Screenshot 2026-05-12 at 9 10 51 AM

Why

The previous implementation had issues with value capturing in Ionic v7 and lacked proper validation/type safety. These changes improve reliability, user experience, and code quality.

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.

1 participant