Skip to content

Commit

Permalink
[5.x] Handle hidden fields on nav page edit form (#11272)
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean authored Dec 17, 2024
1 parent 64898e3 commit 1036a91
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions resources/js/components/structures/PageEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,14 @@
</template>

<script>
import HasHiddenFields from "../publish/HasHiddenFields";
export default {
mixins: [
HasHiddenFields,
],
props: {
id: String,
entry: String,
Expand Down Expand Up @@ -186,9 +192,9 @@ export default {
this.$axios.post(postUrl, {
type: this.type,
values: this.values
values: this.visibleValues
}).then(response => {
this.$emit('submitted', this.values);
this.$emit('submitted', this.visibleValues);
}).catch(e => {
this.validating = false;
if (e.response && e.response.status === 422) {
Expand Down

0 comments on commit 1036a91

Please sign in to comment.