diff options
| author | Mohammad Amoush <mohammad_amoush@brown.edu> | 2019-06-20 12:54:41 -0400 |
|---|---|---|
| committer | Mohammad Amoush <mohammad_amoush@brown.edu> | 2019-06-20 12:54:41 -0400 |
| commit | 711abbeba69e4d9afc634b8edf019b12b6dff915 (patch) | |
| tree | bddfdb0692e3948af92077aad0c58e7a69c688b3 /src/client/views/presentationview/PresentationElement.tsx | |
| parent | 6fc6054dc7aea144fd967a8cb3fe7d8fe5ec6d6d (diff) | |
Documentation and reset Presentation at removal fixed
Diffstat (limited to 'src/client/views/presentationview/PresentationElement.tsx')
| -rw-r--r-- | src/client/views/presentationview/PresentationElement.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/presentationview/PresentationElement.tsx b/src/client/views/presentationview/PresentationElement.tsx index a84bbbf3c..b12dfd9d5 100644 --- a/src/client/views/presentationview/PresentationElement.tsx +++ b/src/client/views/presentationview/PresentationElement.tsx @@ -12,7 +12,6 @@ import { faFile as fileSolid, faLocationArrow, faArrowUp, faSearch } from '@fort import { faFile as fileRegular } from '@fortawesome/free-regular-svg-icons'; import { List } from "../../../new_fields/List"; import { listSpec } from "../../../new_fields/Schema"; -import { DocumentManager } from "../../util/DocumentManager"; @@ -72,11 +71,13 @@ export default class PresentationElement extends React.Component<PresentationEle return this.selectedButtons; } + //Lifecycle function that makes sure that button BackUp is received when mounted. async componentDidMount() { this.receiveButtonBackUp(); } + //Lifecycle function that makes sure button BackUp is received when not re-mounted bu re-rendered. async componentDidUpdate() { this.receiveButtonBackUp(); } |
