foss42 / apidash

API Dash is a beautiful open-source cross-platform API Client built using Flutter which can help you easily create & customize your API requests, visually inspect responses and generate API integration code. It is supported for macOS, Windows, Linux, Android & iOS. A lightweight alternative to postman/insomnia.
https://apidash.dev
Apache License 2.0
1.59k stars 301 forks source link

fix: prevent adding multiple empty rows #346

Closed DenserMeerkat closed 6 months ago

DenserMeerkat commented 6 months ago

PR Description

Resolved the issue of multiple rows being added by introducing an isAddingRow flag. The flag prevents additional rows from being added while the user is still typing rapidly.

https://github.com/foss42/apidash/assets/95911940/b832fbf0-46e4-43cd-9651-c53585b696af

Related Issues

Checklist

Added/updated tests?

We encourage you to add relevant test cases.

animator commented 6 months ago

Thanks for the fix. But, there is one issue .. which might require raising a new issue & PR. After adding a lot of rows, whenever a new row gets added next, the current textfield loses focus & the table scrolls to the top making it inconvenient for the user.

animator commented 6 months ago

Raised issue #350