romo 0.14.0 → 0.14.1

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.
@@ -50,7 +50,7 @@ RomoDatepicker.prototype.doBindElem = function() {
50
50
  // incorrectly remove the wrapper. Any value will do - I chose 100 arbitrarily.
51
51
  setTimeout($.proxy(function() {
52
52
  Romo.parentChildElems.add(this.elem, [elemWrapper]);
53
- }, this), 100);
53
+ }, this), 1);
54
54
 
55
55
  this.elem.attr('autocomplete', 'off');
56
56
 
@@ -77,7 +77,12 @@ RomoDropdown.prototype.doInitPopup = function() {
77
77
 
78
78
  // the popup should be treated like a child elem. add it to Romo's
79
79
  // parent-child elems so it will be removed when the elem is removed.
80
- Romo.parentChildElems.add(this.elem, [this.popupElem]);
80
+ // delay adding it b/c other components may `append` generated dropdowns
81
+ // meaning the dropdown is removed and then re-added. if added immediately
82
+ // the "remove" part will incorrectly remove the popup.
83
+ setTimeout($.proxy(function() {
84
+ Romo.parentChildElems.add(this.elem, [this.popupElem]);
85
+ }, this), 1);
81
86
  }
82
87
 
83
88
  RomoDropdown.prototype.doInitBody = function() {
@@ -51,7 +51,12 @@ RomoModal.prototype.doInitPopup = function() {
51
51
 
52
52
  // the popup should be treated like a child elem. add it to Romo's
53
53
  // parent-child elems so it will be removed when the elem is removed.
54
- Romo.parentChildElems.add(this.elem, [this.popupElem]);
54
+ // delay adding it b/c other components may `append` generated modals
55
+ // meaning the modal is removed and then re-added. if added immediately
56
+ // the "remove" part will incorrectly remove the popup.
57
+ setTimeout($.proxy(function() {
58
+ Romo.parentChildElems.add(this.elem, [this.popupElem]);
59
+ }, this), 1);
55
60
  }
56
61
 
57
62
  RomoModal.prototype.doInitBody = function() {
@@ -132,7 +132,12 @@ RomoSelect.prototype._buildSelectDropdownElem = function() {
132
132
 
133
133
  // the elem wrapper should be treated like a child elem. add it to Romo's
134
134
  // parent-child elems so it will be removed when the elem (select) is removed.
135
- Romo.parentChildElems.add(this.elem, [this.elemWrapper]);
135
+ // delay adding it b/c other components may `append` generated selects
136
+ // meaning the select is removed and then re-added. if added immediately
137
+ // the "remove" part will incorrectly remove the wrapper.
138
+ setTimeout($.proxy(function() {
139
+ Romo.parentChildElems.add(this.elem, [this.elemWrapper]);
140
+ }, this), 1);
136
141
 
137
142
  var caretClass = this.elem.data('romo-select-caret') || this.defaultCaretClass;
138
143
  if (caretClass !== undefined && caretClass !== 'none') {
@@ -70,7 +70,12 @@ RomoTooltip.prototype.doInitPopup = function() {
70
70
 
71
71
  // the popup should be treated like a child elem. add it to Romo's
72
72
  // parent-child elems so it will be removed when the elem is removed.
73
- Romo.parentChildElems.add(this.elem, [this.popupElem]);
73
+ // delay adding it b/c other components may `append` generated tooltips
74
+ // meaning the tooltip is removed and then re-added. if added immediately
75
+ // the "remove" part will incorrectly remove the popup.
76
+ setTimeout($.proxy(function() {
77
+ Romo.parentChildElems.add(this.elem, [this.popupElem]);
78
+ }, this), 1);
74
79
  }
75
80
 
76
81
  RomoTooltip.prototype.doInitBody = function() {
data/lib/romo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Romo
2
- VERSION = "0.14.0"
2
+ VERSION = "0.14.1"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: romo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 39
4
+ hash: 37
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 14
9
- - 0
10
- version: 0.14.0
9
+ - 1
10
+ version: 0.14.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kelly Redding