[BUGFIX] Form NumberFields ignore typed values in wizard 95/42895/4
authorSebastian Wagner <sebastian.wagner@tritum.de>
Thu, 27 Aug 2015 19:37:29 +0000 (21:37 +0200)
committerOliver Hader <oliver.hader@typo3.org>
Fri, 28 Aug 2015 15:30:21 +0000 (17:30 +0200)
commit07bc69344ee6b0f7956df2c11bea227115f8acc8
tree65a6e227d0743d13508ad5761ef799c79b83c04c
parentdded3acdf4a47065b5a8ce21e74a19f22a7b534d
[BUGFIX] Form NumberFields ignore typed values in wizard

"Spinner fields" in EXT:form are an old remake of the HTML5
number in ExtJS. Directly typing a value into that spinner
field is not stored - only by clicking the accordant buttons
to "spinup" or "spindown" the value.

A listener for the blur event handles this task and now allows
to store typed numbers as well. The event handler utilizes the
blur event to update the value - thus, the disabled onBlur
handling has to be disabled as well.
Using the change event did not work out due to ExtJS constraints.

Resolves: #69024
Releases: master, 6.2
Change-Id: I13264019c3edbfb8aa7051a4ae2e3ce91dd5c7f6
Reviewed-on: http://review.typo3.org/42895
Tested-by: Bjoern Jacob <bjoern.jacob@tritum.de>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Ux/Ext.ux.form.spinnerfield.js
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Viewport/Left/Options/Forms/Attributes.js
typo3/sysext/form/Resources/Public/JavaScript/Wizard/Viewport/Left/Options/Forms/Validation/Rule.js