Skip to content

TypeError: _self._toggleState is not a function #363

@jezsmith

Description

@jezsmith

Hi,
I get this error (TypeError: _self._toggleState is not a function) in FireFox when I click the SelectAll option in the multiselect midget.
as a temporary fix I've changed this:

    // select option tags
    this.element.find('option').filter(function() {
      if(!this.disabled && $.inArray(this.value, values) > -1) {
        _self._toggleState('selected', flag).call(this);
      }
    });

to this:

    // select option tags
    this.element.find('option').filter(function() {
      if(!this.disabled && $.inArray(this.value, values) > -1) {
        //_self._toggleState('selected', flag).call(this);

        if($(this).attr("selected") == "selected") {
            $(this).removeAttr("selected");
        } else {
            $(this).attr("selected", "selected");
        }

      }
    });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions