@bigbinary/neeto-fields-frontend 1.3.12 → 1.3.13
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/README.md +2 -1
- package/dist/index.cjs.js +8 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +8 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -907,7 +907,7 @@ var useFormikFields = function useFormikFields(_ref) {
|
|
|
907
907
|
disabled: disabled,
|
|
908
908
|
//conditional props
|
|
909
909
|
options: isDropdown$1(kind) ? fieldData : undefined,
|
|
910
|
-
getPopupContainer: isDateTime(kind) ? prop("parentElement") : undefined
|
|
910
|
+
getPopupContainer: !isInline && isDateTime(kind) ? prop("parentElement") : undefined
|
|
911
911
|
})
|
|
912
912
|
};
|
|
913
913
|
};
|
|
@@ -7849,15 +7849,20 @@ var InlineFieldValueInput = function InlineFieldValueInput(_ref) {
|
|
|
7849
7849
|
_ref$ownerId = _ref.ownerId,
|
|
7850
7850
|
ownerId = _ref$ownerId === void 0 ? "" : _ref$ownerId,
|
|
7851
7851
|
_ref$onMutationSucces = _ref.onMutationSuccess,
|
|
7852
|
-
onMutationSuccess = _ref$onMutationSucces === void 0 ? noop$1 : _ref$onMutationSucces
|
|
7852
|
+
onMutationSuccess = _ref$onMutationSucces === void 0 ? noop$1 : _ref$onMutationSucces,
|
|
7853
|
+
_ref$onMutate = _ref.onMutate,
|
|
7854
|
+
_onMutate = _ref$onMutate === void 0 ? noop$1 : _ref$onMutate;
|
|
7853
7855
|
var _useState = useState(false),
|
|
7854
7856
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7855
7857
|
editMode = _useState2[0],
|
|
7856
7858
|
setEditMode = _useState2[1];
|
|
7857
7859
|
var queryOptions = {
|
|
7860
|
+
onMutate: function onMutate(variables) {
|
|
7861
|
+
return _onMutate(variables.payload || variables);
|
|
7862
|
+
},
|
|
7858
7863
|
onSuccess: function onSuccess() {
|
|
7859
7864
|
setEditMode(false);
|
|
7860
|
-
onMutationSuccess();
|
|
7865
|
+
onMutationSuccess.apply(void 0, arguments);
|
|
7861
7866
|
}
|
|
7862
7867
|
};
|
|
7863
7868
|
var _useFieldValues = useFieldValues({
|