Skip to content

Dashboard crashes when editing row with modal #2324

Closed
@sadakchap

Description

@sadakchap

New Issue Checklist

Issue Description

Dashboard crashes when entering invalid(mismatch type) value.
https://user-images.githubusercontent.com/44117648/195969907-2357880e-5b56-49e0-b5ec-c6a02ecd52ba.mov

Steps to reproduce

  1. open edit row modal
  2. enter text in Number type field
  3. move the mouse cursor(pointer) out of textarea/input
  4. Dashboard crashes

Actual Outcome

Dashboard crashes on entering invalid value.

Expected Outcome

Either let user enter invalid value and show a message or restrict user to enter invalid values.
Like in Number type field, we should proper Number editor instead of string editor to prevent user from entering invalid value for that field.

Environment

Dashboard

  • Parse Dashboard version: latest-alpha
  • Browser (Safari, Chrome, Firefox, Edge, etc.): Chrome
  • Browser version: 106.0.5249.119 (arm64)

Server

  • Parse Server version: n/a
  • Operating system: n/a
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): n/a

Database

  • System (MongoDB or Postgres): MongoDB
  • Database version: 4.4
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): AWS

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bounty:$50Bounty applies for fixing this issue (Parse Bounty Program)type:bugImpaired feature or lacking behavior that is likely assumed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions