[BUG] OnTextChange with Text field set to "Number"


#1

Hi!

When you set a text field’s type to Number, at least in Chrome it adds little up and down buttons to in- or decrease the number in the textfield. When those are used, OnTextChange isn’t called.

– Kevin


#2

Hi Kevin,

I believe this is a known issue for certain types of text fields, such as the Number and Date type fields. While OnTextChange won’t kick in for a change triggered by the browser-specific options for the number field (such as the up and down arrows that appear in Chrome), it looks like it should kick in if:

  1. There is no hint style applied to the text field

  2. A different event such as OnMouseUp or OnLostFocus is used.

I’ll file this thread with the main case on our end, but in the meantime hopefully this helps!


#3

Is this ever going to get fixed at all?

This breaks my prototype!


#4

Hi MsG,

This still exists, but I’ll let our teams know that more users are running into this issue. For now, it may help to build a custom text field with custom up/down arrows, or the workarounds Alyssa mentioned, but lmk if you want more targeted assistance. :slight_smile:


unlisted #5