Browse Source

Fixes createEvent to use same bubbling/cancelable settings as specified in spec

pull/3130/merge
Jack 9 years ago
parent
commit
0905774143
5 changed files with 9 additions and 4 deletions
  1. 5
      RELEASE-NOTES.md
  2. 2
      package.json
  3. 2
      src/definitions/modules/checkbox.js
  4. 2
      src/definitions/modules/dropdown.js
  5. 2
      src/definitions/modules/search.js

5
RELEASE-NOTES.md

@ -1,5 +1,10 @@
## RELEASE NOTES
### Version 2.1.6 - Nov 6, 2015
**Bug Fixes**
- **Checkbox/Dropdown/Search** - Fixed issue where dropdown/checkbox `change` events were not bubbling. (Dispatched events were swapped to use native `document.creatEvent` in `2.1.5` unfortunately the flag to bubble events was mistakenly off.)
### Version 2.1.5 - Nov 1, 2015
**Docs Enhancements**

2
package.json

@ -1,6 +1,6 @@
{
"name": "semantic-ui",
"version": "2.1.5",
"version": "2.1.6",
"title": "Semantic UI",
"description": "Semantic empowers designers and developers by creating a shared vocabulary for UI.",
"homepage": "http://www.semantic-ui.com",

2
src/definitions/modules/checkbox.js

@ -508,7 +508,7 @@ $.fn.checkbox = function(parameters) {
;
if(inputElement) {
module.verbose('Triggering native change event');
events.initEvent('change', false, true);
events.initEvent('change', true, false);
inputElement.dispatchEvent(events);
}
}

2
src/definitions/modules/dropdown.js

@ -1311,7 +1311,7 @@ $.fn.dropdown = function(parameters) {
;
if(inputElement) {
module.verbose('Triggering native change event');
events.initEvent('change', false, true);
events.initEvent('change', true, false);
inputElement.dispatchEvent(events);
}
}

2
src/definitions/modules/search.js

@ -317,7 +317,7 @@ $.fn.search = function(parameters) {
;
if(promptElement) {
module.verbose('Triggering native blur event');
events.initEvent('blur', false, true);
events.initEvent('blur', false, false);
promptElement.dispatchEvent(events);
}
}

Loading…
Cancel
Save