diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-11-09 03:25:25 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-11-09 03:25:25 +0800 |
commit | 3395b8d095a62e5baa4c049da98b256ce596d6b9 (patch) | |
tree | b9241ba7299fdcc5f7a5e1f17cad7a4a95ae203d /packages/instant/src/index.umd.ts | |
parent | 88eb642aa543673bde52c1d14fc1f3e92d8b2137 (diff) | |
parent | b388d5496272d535b5c192a7098f4227bb1fb3f2 (diff) | |
download | dexon-sol-tools-3395b8d095a62e5baa4c049da98b256ce596d6b9.tar dexon-sol-tools-3395b8d095a62e5baa4c049da98b256ce596d6b9.tar.gz dexon-sol-tools-3395b8d095a62e5baa4c049da98b256ce596d6b9.tar.bz2 dexon-sol-tools-3395b8d095a62e5baa4c049da98b256ce596d6b9.tar.lz dexon-sol-tools-3395b8d095a62e5baa4c049da98b256ce596d6b9.tar.xz dexon-sol-tools-3395b8d095a62e5baa4c049da98b256ce596d6b9.tar.zst dexon-sol-tools-3395b8d095a62e5baa4c049da98b256ce596d6b9.zip |
Merge branch 'development' of https://github.com/0xProject/0x-monorepo into feature/instant/dropdown-ui
Diffstat (limited to 'packages/instant/src/index.umd.ts')
-rw-r--r-- | packages/instant/src/index.umd.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/instant/src/index.umd.ts b/packages/instant/src/index.umd.ts index 59d1e646f..0274db30c 100644 --- a/packages/instant/src/index.umd.ts +++ b/packages/instant/src/index.umd.ts @@ -2,7 +2,7 @@ import * as _ from 'lodash'; import * as React from 'react'; import * as ReactDOM from 'react-dom'; -import { DEFAULT_ZERO_EX_CONTAINER_SELECTOR, INJECTED_DIV_ID } from './constants'; +import { DEFAULT_ZERO_EX_CONTAINER_SELECTOR, INJECTED_DIV_CLASS, INJECTED_DIV_ID } from './constants'; import { ZeroExInstantOverlay, ZeroExInstantOverlayProps } from './index'; import { assert } from './util/assert'; @@ -41,6 +41,7 @@ export const render = (props: ZeroExInstantOverlayProps, selector: string = DEFA const appendTo = appendToIfExists as Element; const injectedDiv = document.createElement('div'); injectedDiv.setAttribute('id', INJECTED_DIV_ID); + injectedDiv.setAttribute('class', INJECTED_DIV_CLASS); appendTo.appendChild(injectedDiv); const instantOverlayProps = { ...props, |