glud-component
Advanced tools
Comparing version 1.9.10 to 1.9.11
@@ -30,3 +30,10 @@ 'use strict'; | ||
var parent = getParentClosest(ref.current, '#ui-container'); | ||
if (parent && show) { | ||
var modalChild = parent.getAttribute('data-modalchild'); | ||
if (modalChild) { | ||
parent.setAttribute('data-modalchild', '' + (Number(modalChild) + 1)); | ||
} else { | ||
parent.setAttribute('data-modalchild', '1'); | ||
} | ||
parent.style.overflow = 'hidden'; | ||
@@ -37,3 +44,10 @@ } | ||
if (parent && show) { | ||
parent.style.overflow = 'auto'; | ||
var _modalChild = parent.getAttribute('data-modalchild'); | ||
if (_modalChild === '1') { | ||
parent.style.overflow = 'auto'; | ||
parent.setAttribute('data-modalchild', '0'); | ||
} else { | ||
var newModalChild = Number(_modalChild) - 1; | ||
parent.setAttribute('data-modalchild', '' + newModalChild); | ||
} | ||
} | ||
@@ -40,0 +54,0 @@ }; |
{ | ||
"name": "glud-component", | ||
"version": "1.9.10", | ||
"version": "1.9.11", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "repository": { |
881304
7787