@hixme/modal
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -46,9 +46,3 @@ 'use strict'; | ||
return function (dispatch) { | ||
var setStyle = { | ||
position: 'fixed', | ||
minWidth: '100%', | ||
minHeight: '100%', | ||
overflow: 'hidden' | ||
}; | ||
document.body.style = setStyle; | ||
document.body.style.overflow = 'hidden'; | ||
return dispatch({ | ||
@@ -63,9 +57,3 @@ type: SET_VIEW, | ||
return function (dispatch) { | ||
var clearStyle = { | ||
position: 'unset', | ||
minWidth: 'unset', | ||
minHeight: 'unset', | ||
overflow: 'unset' | ||
}; | ||
document.body.style = clearStyle; | ||
document.body.style.overflow = 'unset'; | ||
return dispatch({ | ||
@@ -72,0 +60,0 @@ type: CLEAR_MODAL |
{ | ||
"name": "@hixme/modal", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Hixme Modal", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -23,9 +23,3 @@ import { createReducer, namespaceActions } from '@hixme/redux-utils' | ||
export const setView = view => (dispatch) => { | ||
const setStyle = { | ||
position: 'fixed', | ||
minWidth: '100%', | ||
minHeight: '100%', | ||
overflow: 'hidden', | ||
} | ||
document.body.style = setStyle | ||
document.body.style.overflow = 'hidden' | ||
return dispatch({ | ||
@@ -38,9 +32,3 @@ type: SET_VIEW, | ||
export const clearModal = () => (dispatch) => { | ||
const clearStyle = { | ||
position: 'unset', | ||
minWidth: 'unset', | ||
minHeight: 'unset', | ||
overflow: 'unset', | ||
} | ||
document.body.style = clearStyle | ||
document.body.style.overflow = 'unset' | ||
return dispatch({ | ||
@@ -47,0 +35,0 @@ type: CLEAR_MODAL, |
Sorry, the diff of this file is not supported yet
56043
950