ZF-9771: Zend_Dojo_Form_Element_ComboBox autocomplete feature fails when using declarative
Description
This part of code in Zend_Dojo_Form_Element_ComboBox line 152
public function setAutocomplete($flag)
{
$this->setDijitParam('autocomplete', (bool) $flag);
return $this;
}
in conjunction with
Zend_Dojo_View_Helper_Dojo::setUseDeclarative();
when trying to set autocomplete feature to 'false' provides a dijit markup with autocompelete="" property which actualy means no value and autocomplete stays on (as it is by default in dojo). Same goes to Dojo_Form_Element_FilteringSelect as it derives from combobox.
Suggestion: set property as is, without type casting.
Comments
Posted by Martijn Swaagman (swaagie) on 2011-04-25T14:04:59.000+0000
Manual type casting of the true/false option was needed
Posted by Matthew Weier O'Phinney (matthew) on 2011-05-02T19:33:28.000+0000
Patch reviewed and applied to trunk and 1.11 release branch.
Posted by Robert Basic (robertbasic) on 2011-08-01T13:54:49.000+0000
Pull request for porting the patch in ZF2 is sent: https://github.com/zendframework/zf2/pull/308