2amigos / yiiwheels-docs

Demo site for yii-wheels
BSD 3-Clause "New" or "Revised" License
40 stars 27 forks source link

Specify `multiple` html attribute on `WhMultiSelect` #4

Closed velosipedist closed 11 years ago

velosipedist commented 11 years ago

Without passing 'multiple'=>'multiple' in widget's htmlOptions multiselected values in hidden dropdown input will be restored from model incorrectly, at least in Chrome v28 for Windows.

For now, it can be only workarounded like:

$this->widget('yiiwheels.widgets.multiselect.WhMultiSelect',array(
    // rest of config options - model, attribute, etc
    'htmlOptions'=>array('multiple'=>'multiple')
));
tonydspaniard commented 11 years ago

This is fixed by @velosipedist (you) at https://github.com/2amigos/yiiwheels/commit/952c894baf3db496e908ad334f661d10d61085bd