mui-sass 0.4.7 → 0.4.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a2050f12dddeda8e3aef97f97647c8b68fb34404
4
- data.tar.gz: 44f610c26efabbfcb61d9a9905a44c0852e0f2f9
3
+ metadata.gz: 3c75f2245855079bed941a701b54d29d21324b30
4
+ data.tar.gz: 508a4b4da2adeafc09ba355962fa5ad61ace67bc
5
5
  SHA512:
6
- metadata.gz: 24bb2735dfa831635f9cddc1fc6ca9e6a123472cd52907cc8303371087fab6812bea871d88d17d34b3450d0598867736a4822e2d00bc6052c2591907dd08519c
7
- data.tar.gz: 469bd855a4955bd3d67bbf289b68efd11d4c8c29da22b85338b3a1c14d2d76d0bf8f806f893672f4e29a8e8376b20fc39f21337d0e7b9f3ac1e093b9689a18d4
6
+ metadata.gz: 66763d335149d77828ff8d6ca6106428801e823f4641ddac4a0e69874c09aced719c9376e333c1eb67add96548d90103b112e65d4942b23ee62fcf0d2cf778fd
7
+ data.tar.gz: 3038c59b681fca5e04e2cc755118f59bdd6777f4a4a711ee0bafa65d15baa083bf8518ca23789b216f42dd940f15a9520b52b70b776665e51b050f4bcd243f9d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 0.4.8 (2016-03-31)
2
+
3
+ - Update assets to match upstream version
4
+
5
+ Framework version: MUI v0.4.8
6
+
1
7
  ## 0.4.7 (2016-03-02)
2
8
 
3
9
  - Update assets to match upstream version
@@ -1,5 +1,5 @@
1
1
  module Mui
2
2
  module Sass
3
- VERSION = '0.4.7'
3
+ VERSION = '0.4.8'
4
4
  end
5
5
  end
@@ -789,6 +789,9 @@ function initialize(toggleEl) {
789
789
  if (toggleEl._muiDropdown === true) return;
790
790
  else toggleEl._muiDropdown = true;
791
791
 
792
+ // use type "button" to prevent form submission by default
793
+ if (!toggleEl.hasAttribute('type')) toggleEl.type = 'button';
794
+
792
795
  // attach click handler
793
796
  jqLite.on(toggleEl, 'click', clickHandler);
794
797
  }
@@ -807,10 +810,6 @@ function clickHandler(ev) {
807
810
  // exit if toggle button is disabled
808
811
  if (toggleEl.getAttribute('disabled') !== null) return;
809
812
 
810
- // prevent form submission
811
- ev.preventDefault();
812
- ev.stopPropagation();
813
-
814
813
  // toggle dropdown
815
814
  toggleDropdown(toggleEl);
816
815
  }
@@ -851,7 +850,7 @@ function toggleDropdown(toggleEl) {
851
850
  jqLite.addClass(menuEl, openClass);
852
851
 
853
852
  // close dropdown when user clicks outside of menu
854
- jqLite.on(doc, 'click', closeDropdownFn);
853
+ setTimeout(function() {jqLite.on(doc, 'click', closeDropdownFn);}, 0);
855
854
  }
856
855
 
857
856
  // toggle dropdown
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mui-sass
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitriy Tarasov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-02 00:00:00.000000000 Z
11
+ date: 2016-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass