Form: Add Ajax Handler - Not working for Numbers

Issue information

From user: coaston

Contribution record

Fork management

Problem/Motivation

I would like to work with numbers and calculate the difference, hence I need ajax to calculate it immediately. However when I try with a standard text field, select list or radio button, or just title it seems it works as expected.

But if I try with number (integer) or (decimal) Ajax still tries to refresh it and won't save required value.

Here is video attached :20154029.mp4

I am using simple model on clean Drupal version:
issue

It seems like very similar issue which was resolved with text field here :3360158.

Am I doing anything wrong or it is a bug?

Edited by drupalbot
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information