Releases: nette/forms
Releases · nette/forms
Released version 2.3.3
Released version 2.3.2
- netteForms.js: toggleControl() binds events on all inputs #75
- netteForms.js: fixed getValue for radio list #73 and multi select box
- FormMacros:
<label n:name></label>
is rendered without caption, fixes 6d16631 - Form::fireEvents() calls onError even after last onSuccess handler
- RadioList & CheckboxList: getControlPart() normalizes key type #76 #78
For the details you can have a look at the diff.
Released version 2.2.6
- netteForms.js: toggleControl() binds events on all inputs #75
- netteForms.js: fixed getValue for radio list #73 and multi select box
- Form::fireEvents() calls onError even after last onSuccess handler
- RadioList & CheckboxList: getControlPart() normalizes key type #76 #78
- netteForms.js: used form.elements.namedItem(…) instead of form.elements[…] #72
For the details you can have a look at the diff.
Released version 2.3.1
Released version 2.2.5
- netteForms.js: fixed bug in toggleControl from 8871974
- netteForms.js: Fixed "Uncaught TypeError: Cannot read property 'tagName' of undefined"
- netteForms.js: validator 'float' converts value to float, 'url' prepends 'http://' nette/nette#1430 nette/nette#1462
- netteForms.js: ignore fieldsets (and eventually other non-control elements) in form.elements
- netteForms.js: add webalize() support for ô ä ľ characters
- netteForms.js: fixed length validation on checkbox list with exactly 1 item #59
- netteForms.js: validator 'filled' for [] returns false
- netteForms.js: textarea is not trimmed
- DefaultFormRenderer: automatically sets setOption('rendered', TRUE)
- Helpers: fixed quirky htmlspecialchars in PHP 5.6
For the details you can have a look at the diff.
Released version 2.3.0
- fixed some limitations of
netteForms.js
- TextBase: input is not silently truncated to max-length
TextBase::addFilter()
is processed during validation, addedRules::addFilter()
- now you can add filters to conditions
$input->addCondition(...)->addFilter(...)
- to
Container::onValidate
callbacks are passed values via second parameter - added bridge for Nette DI
- internal filtering methods like
Nette\Forms\Controls\TextBase::filterFloat
was removed - internal validation methods like
Nette\Forms\Controls\TextBase::validateFloat
was moved toNette\Forms\Validator
, as well asRules::$defaultMessages
- Buttons and Hidden fields are generated without HTML ID. Relying on autogenerated ID is very bad, if you want ID, set it via
setHtmlId()
- RadioList items are generated without ID too. You can enable it via
$radioList->generateId = TRUE
. But again: set you base ID viasetHtmlId()
- DefaultFormRenderer adds classes to inputs & label only during rendering process (BC break)
Released version 2.2.4
- BaseControl: allow passing objects to translator in control
- netteForms.js: getValue returns bool for checkbox
- bower: excluded examples folder
For the details you can have a look at the diff.
Released version 2.2.3
- CsrfProtection: token is expired after regenerateId() (i.e. after logout) [Closes #36]
- CSRF: better error message
- CsrfProtection: ignores setValue(), is not erased by Form::setValues() [Closes #39][Closes #40]
- RadioList: added item label prototype [fixes #31]
- Container: added addMultiUpload()
- TextBase: added setMaxLength()
- TextInput: removed empty value=""
- TextBase: fixed setEmptyValue() and space at the end of the string [Closes #35]
- Latte: Fixed $formContainer recover after end of formContainer macro [Closes #43]
- netteforms.js: Change order of showing error message and focusing element. In Firefox element lost focus when alert is invoked.
For the details you can have a look at the diff.
Released version 2.2.2
- fixed erasing of manually added errors via addError
- fixed getHttpData() for multiple file uploads
- Latte: prettier output formating
For the details you can have a look at the diff.
Released version 2.2.1
- netteForms: toggle related event handler is added only once
- some fixes
For the details about the changes you can have a look at the Github diff.