Skip to content

Conversation

@djsutho
Copy link
Contributor

@djsutho djsutho commented Feb 25, 2014

In Chrome (this does not affect Firefox) onchange events on multi-selects are not fired all of the time e.g. with the following template:

<body>
    <select multiple="multiple" onchange="console.log('clicked');">
        <option  value="1">1</option>
    </select>
</body>

Ctrl click on the option and view the js log. many of the events will not register. Therefore stop propagation and prevent default action only when handle is dragged.

In Chrome (this does not affect Firefox) onchange events on multi-selects are not fired all of the time e.g. with the following template:

<body>
    <select multiple="multiple" onchange="console.log('clicked');">
        <option  value="1">1</option>
    </select>
</body>

Ctrl click on the option and view the js log. many of the events will not register. Therefore stop propagation and prevent default action only when handle is dragged.
aaugustin added a commit that referenced this pull request Feb 26, 2014
Propagate mouseup events when not dragging toolbar
@aaugustin aaugustin merged commit a1eaf63 into django-commons:master Feb 26, 2014
ryneeverett pushed a commit to ryneeverett/django-debug-toolbar that referenced this pull request Oct 2, 2016
Propagate mouseup events when not dragging toolbar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants