tinacms 0.69.12 → 0.69.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/dist/index.es.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -5189,7 +5189,7 @@ const RenderForm$1 = ({ cms, collection, templateName, mutationInfo }) => {
|
|
|
5189
5189
|
extraSubscribeValues: { active: true, submitting: true, touched: true },
|
|
5190
5190
|
onChange: (values) => {
|
|
5191
5191
|
var _a3;
|
|
5192
|
-
if (slugFunction &&
|
|
5192
|
+
if (slugFunction && (values == null ? void 0 : values.active) !== "filename" && !(values == null ? void 0 : values.submitting) && !((_a3 = values.touched) == null ? void 0 : _a3.filename)) {
|
|
5193
5193
|
const value = slugFunction(values == null ? void 0 : values.values);
|
|
5194
5194
|
form.finalForm.change("filename", value);
|
|
5195
5195
|
}
|
package/dist/index.js
CHANGED
|
@@ -5207,7 +5207,7 @@ This will work when developing locally but NOT when deployed to production.
|
|
|
5207
5207
|
extraSubscribeValues: { active: true, submitting: true, touched: true },
|
|
5208
5208
|
onChange: (values) => {
|
|
5209
5209
|
var _a3;
|
|
5210
|
-
if (slugFunction &&
|
|
5210
|
+
if (slugFunction && (values == null ? void 0 : values.active) !== "filename" && !(values == null ? void 0 : values.submitting) && !((_a3 = values.touched) == null ? void 0 : _a3.filename)) {
|
|
5211
5211
|
const value = slugFunction(values == null ? void 0 : values.values);
|
|
5212
5212
|
form.finalForm.change("filename", value);
|
|
5213
5213
|
}
|