@rip-lang/ui 0.3.43 → 0.3.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -40,9 +40,8 @@ export Combobox = component
40
40
 
41
41
  onFocusin: -> @openMenu()
42
42
 
43
- onFocusout: (e) ->
44
- unless @_content?.contains(e.relatedTarget)
45
- @close()
43
+ onFocusout: ->
44
+ setTimeout => @close() unless @_content?.contains(document.activeElement), 0
46
45
 
47
46
  openMenu: ->
48
47
  open = true
@@ -73,7 +72,6 @@ export Combobox = component
73
72
  @query = val
74
73
  @emit 'select', val
75
74
  @close()
76
- @_input?.blur()
77
75
 
78
76
  _nextEnabled: (from, dir) ->
79
77
  opts = @getItems()
@@ -64,11 +64,13 @@ export MultiSelect = component
64
64
 
65
65
  onFocusin: -> open = true
66
66
 
67
- onFocusout: (e) ->
68
- unless @_content?.contains(e.relatedTarget)
67
+ onFocusout: ->
68
+ setTimeout =>
69
+ return if @_content?.contains(document.activeElement)
69
70
  open = false
70
71
  query = ''
71
72
  highlightedIndex = -1
73
+ , 0
72
74
 
73
75
  _position: ->
74
76
  return unless @_input and @_list
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rip-lang/ui",
3
- "version": "0.3.43",
3
+ "version": "0.3.44",
4
4
  "author": "Steve Shreeve <steve.shreeve@gmail.com>",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,6 +35,6 @@
35
35
  "license": "MIT",
36
36
  "type": "module",
37
37
  "dependencies": {
38
- "rip-lang": ">=3.13.97"
38
+ "rip-lang": ">=3.13.98"
39
39
  }
40
40
  }