jrs-react 1.2.45 → 1.2.46

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.
package/build/index.es.js CHANGED
@@ -4955,11 +4955,13 @@ class Backdrop extends JRHTML {
4955
4955
  }
4956
4956
  show() {
4957
4957
  this.backdrop = this.agregarHijo(this.backdropConfig);
4958
+ this.on = true;
4958
4959
  }
4959
4960
  hide() {
4960
- if (this.hijos.length) {
4961
+ if (this.on) {
4961
4962
  this.yo.removeChild(this.yo.children[this.yo.children.length - 1]);
4962
4963
  this.hijos = [];
4964
+ this.on = false;
4963
4965
  }
4964
4966
  }
4965
4967
  }
package/build/index.js CHANGED
@@ -4982,11 +4982,13 @@ class Backdrop extends JRHTML {
4982
4982
  }
4983
4983
  show() {
4984
4984
  this.backdrop = this.agregarHijo(this.backdropConfig);
4985
+ this.on = true;
4985
4986
  }
4986
4987
  hide() {
4987
- if (this.hijos.length) {
4988
+ if (this.on) {
4988
4989
  this.yo.removeChild(this.yo.children[this.yo.children.length - 1]);
4989
4990
  this.hijos = [];
4991
+ this.on = false;
4990
4992
  }
4991
4993
  }
4992
4994
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jrs-react",
3
- "version": "1.2.45",
3
+ "version": "1.2.46",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.es.js",
@@ -74,14 +74,15 @@ class Backdrop extends JRHTML{
74
74
  Object.assign(this.backdropConfig.style,params.backdropStyle)
75
75
  }
76
76
 
77
-
78
77
  show(){
79
78
  this.backdrop=this.agregarHijo(this.backdropConfig)
79
+ this.on=true
80
80
  }
81
81
  hide(){
82
- if(this.hijos.length){
82
+ if(this.on){
83
83
  this.yo.removeChild(this.yo.children[this.yo.children.length-1])
84
84
  this.hijos=[]
85
+ this.on=false
85
86
  }
86
87
  }
87
88
  }