material_raingular 0.0.3.1 → 0.0.3.2

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: 7ea94f133f48652bdd35aad89979c597ce1c7893
4
- data.tar.gz: 203d64c5846c918081873b6441732814db7aa025
3
+ metadata.gz: 1c13a776b583ba81f26556b74cab7995e179bc50
4
+ data.tar.gz: 6e1cfe31dee8a8c2e599cb3b7d118a0b9c70ccc2
5
5
  SHA512:
6
- metadata.gz: d5e66387e6d9135d424b33ba1c9db028124063222aad8771e1ae6da31c53929e45f569fdcc1f2c88e653e208fae99d49344ad47b68f4f83adc41630f87e56b9f
7
- data.tar.gz: fb439a409e1bfcbe33f3445cf4ef730075f5bd41b2c6d42e8d4e87876909bbbdf123dc917ef3cb0c4c20722f4267e59489c977016ce2e9a30ecd5f9284c22445
6
+ metadata.gz: e8fa834ab52932e40591fba4931f8ccd52a1342dce52ac2a95b26e45eb6565e9a97e9210f4b3da923c676c5f2c8cf705b05a8f5ee3db7d9ff45c8c37d579f60b
7
+ data.tar.gz: df42bd0c6272fe6124752593afb94a571ca5fbb0890f6df32c0c026528e7c7fb4cbfc19b3420c5993674b3ea53c910e9343d6f14dc55f4c917b340ad816b565d
@@ -77,6 +77,7 @@ class StandardTemplate
77
77
  stylize: ->
78
78
  @search.addClass('md-input') if @element.hasClass('md-input')
79
79
  @search.css({'width': '100%','color': 'black'})
80
+ @element.css('position','relative').css('overflow','visible')
80
81
  searchCss = window.getComputedStyle(@search[0])
81
82
  @typeAhead.css('padding-left', parseFloat(searchCss["padding-left"]) + parseFloat(searchCss["margin-left"]) + parseFloat(searchCss["border-left-width"]) + 'px')
82
83
  @typeAhead.css('padding-top', parseFloat(searchCss["padding-top"]) + parseFloat(searchCss["margin-top"]) + parseFloat(searchCss["border-top-width"]) + 'px')
@@ -114,12 +115,15 @@ class EventFunctions
114
115
  focusFunction: (event) =>
115
116
  @buildTemplate()
116
117
  blurFunction: (search,event) =>
117
- obj={}
118
- obj[@functions.viewValue] = search.val()
119
- val = @filter('filter')(@functions.collection(@scope), obj)[0]
120
- @updateValue @functions.modelValueFn(val)
121
- search.css
122
- search.val(@functions.viewValueFn(val))
118
+ if search.val().length < 4
119
+ search.val('')
120
+ else
121
+ obj={}
122
+ obj[@functions.viewValue] = search.val()
123
+ val = @filter('filter')(@functions.collection(@scope), obj)[0]
124
+ @updateValue @functions.modelValueFn(val)
125
+ search.css
126
+ search.val(@functions.viewValueFn(val))
123
127
  keydownFunction: (search,typeAhead,template,input) =>
124
128
  keypress = (direction) ->
125
129
  index = if direction == 'next' then 0 else template.find('a').length - 1
@@ -1,3 +1,3 @@
1
1
  module MaterialRaingular
2
- VERSION = "0.0.3.1"
2
+ VERSION = "0.0.3.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: material_raingular
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3.1
4
+ version: 0.0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Moody