This repository has been archived by the owner on Jul 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 77
Specify "multiple" html attribute on WhMultiSelect #32
Comments
Thanks! Should we add that by default? |
It was expected from widget to behave as always multiple selector. Therefore, it have to be hardcoded in widget, like public function renderField()
{
list($name, $id) = $this->resolveNameID();
$this->htmlOptions = TbHtml::defaultOption('id', $id, $this->htmlOptions);
$this->htmlOptions = TbHtml::defaultOption('name', $name, $this->htmlOptions);
// it will be forced later in jQuery plugin anyway, but Chrome will be treat it wrong
$this->htmlOptions['multiple'] = 'multiple';
//...render
} |
any chance for a pull request @velosipedist ? |
I'll try at this week. Have no much expereience of pull-requesting. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Without passing
'multiple'=>'multiple'
in widget'shtmlOptions
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:
The text was updated successfully, but these errors were encountered: