studiokit-scaffolding-js 7.0.9 → 7.0.10-alpha.2

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.
@@ -42,6 +42,7 @@ export declare function configureFullscreenModalComponent<TOwnProps extends {}>(
42
42
  componentDidUpdate(prevProps: TOwnProps & FullscreenModalOwnProps & ConnectedModalWrappedProps & GuidComponentWrappedProps, prevState: FullscreenModalState): void;
43
43
  disableScroll: (e: Event) => boolean;
44
44
  onOpen: () => void;
45
+ onClose: () => void;
45
46
  closeModal: () => void;
46
47
  render(): React.JSX.Element;
47
48
  context: any;
@@ -83,8 +83,11 @@ function configureFullscreenModalComponent(WrappedComponent) {
83
83
  document.documentElement.addEventListener('touchmove', _this.disableScroll);
84
84
  _this.props.onEntering();
85
85
  };
86
- _this.closeModal = function () {
86
+ _this.onClose = function () {
87
87
  document.documentElement.removeEventListener('touchmove', _this.disableScroll);
88
+ _this.props.onExited();
89
+ };
90
+ _this.closeModal = function () {
88
91
  if (_this.props.closeModal) {
89
92
  _this.props.closeModal();
90
93
  return;
@@ -128,6 +131,9 @@ function configureFullscreenModalComponent(WrappedComponent) {
128
131
  if (isOpen) {
129
132
  this.onOpen();
130
133
  }
134
+ else {
135
+ this.onClose();
136
+ }
131
137
  this.setState({
132
138
  isOpen: isOpen
133
139
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "studiokit-scaffolding-js",
3
- "version": "7.0.9",
3
+ "version": "7.0.10-alpha.2",
4
4
  "description": "Common scaffolding for Studio apps at Purdue",
5
5
  "repository": "https://gitlab.com/purdue-informatics/studiokit/studiokit-scaffolding-js",
6
6
  "license": "MIT",