posthog icon indicating copy to clipboard operation
posthog copied to clipboard

refactor: Preventing mousewheel from altering port value

Open slshults opened this issue 1 year ago • 0 comments

Problem

A user pointed out (in ZenDesk ticket 11999) that the value in the port number field, in the batch export config screen, can be changed unintentionally by scrolling with the mouse wheel. This PR is to prevent that by changing the field type from number to tel.

Changes

Changed field type from number to tel on line 371 of frontend/src/scenes/batch_exports/BatchExportEditForm.tsx

Before: before-number

After: CleanShot 2024-05-02 at 14 21 16

Does this work well for both Cloud and self-hosted?

Yes

How did you test this code?

Tested on my local (see the 'after' gif above)

slshults avatar May 02 '24 21:05 slshults