Form: Add Ajax Handler - Not working for Numbers
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3547817. -->
Reported by: [coaston](https://www.drupal.org/user/3606845)
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>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.</p>
<p>But if I try with number (integer) or (decimal) Ajax still tries to refresh it and won't save required value.</p>
<p>Here is video attached :<a href="https://www.drupal.org/files/issues/2025-09-21/AJAXRecording%202025-09-21%20154029.mp4" title="20154029.mp4">20154029.mp4</a></p>
<p>I am using simple model on clean Drupal version:<br>
<img src="https://www.drupal.org/files/issues/2025-09-21/2AjaxScreenshot%202025-09-21%20154539.png" alt="issue"></p>
<p>It seems like very similar issue which was resolved with text field here :<a href="https://www.drupal.org/project/eca/issues/3360158" title="3360158">3360158</a>.</p>
<p>Am I doing anything wrong or it is a bug?</p>
issue