@linzjs/step-ag-grid 2.2.1 → 2.2.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.
package/dist/index.js
CHANGED
|
@@ -2710,7 +2710,11 @@ var useGridPopoverHook = function (props) {
|
|
|
2710
2710
|
});
|
|
2711
2711
|
}); }, [props, stopEditing, propsRef]);
|
|
2712
2712
|
var popoverWrapper = react.useCallback(function (children) {
|
|
2713
|
-
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: anchorRef.current && (jsxRuntime.jsxs(ControlledMenu, __assign({ state: isOpen ? "open" : "closed", portal: true, unmountOnClose: true, anchorRef: anchorRef, saveButtonRef: saveButtonRef, menuClassName: "step-ag-grid-react-menu", onClose: function (event) {
|
|
2713
|
+
return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: anchorRef.current && (jsxRuntime.jsxs(ControlledMenu, __assign({ state: isOpen ? "open" : "closed", portal: true, unmountOnClose: true, anchorRef: anchorRef, saveButtonRef: saveButtonRef, menuClassName: "step-ag-grid-react-menu", onClose: function (event) {
|
|
2714
|
+
if (event.reason === "blur")
|
|
2715
|
+
return;
|
|
2716
|
+
triggerSave(event.reason).then();
|
|
2717
|
+
}, viewScroll: "auto", dontShrinkIfDirectionIsTop: true, className: props.className, closeMenuExclusionClassName: "ReactModal__Content" }, { children: [saving && ( // This is the overlay that prevents editing when the editor is saving
|
|
2714
2718
|
jsxRuntime.jsx("div", { style: {
|
|
2715
2719
|
position: "absolute",
|
|
2716
2720
|
left: 0,
|