Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[6.x] Prevent setting active tab from hash in inline publish forms#13168

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
duncanmcclean wants to merge2 commits intomaster
base:master
Choose a base branch
Loading
fromtab-hash-inline-publish-forms
Open
Show file tree
Hide file tree
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
use a prop instead
  • Loading branch information
@duncanmcclean
duncanmcclean committedNov 25, 2025
commita6b52558d0b08dbc9b3979152843b6bf93594a6c
1 change: 1 addition & 0 deletionsresources/js/components/entries/PublishForm.vue
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -74,6 +74,7 @@
ref="container"
:name="publishContainer"
:reference="initialReference"
:is-inline="isInline"
:blueprint="fieldset"
v-model="values"
:extra-values="extraValues"
Expand Down
1 change: 1 addition & 0 deletionsresources/js/components/terms/PublishForm.vue
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -57,6 +57,7 @@
ref="container"
:name="publishContainer"
:reference="initialReference"
:is-inline="isInline"
:blueprint="fieldset"
v-model="values"
:meta="meta"
Expand Down
7 changes: 6 additions & 1 deletionresources/js/components/ui/Publish/Container.vue
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -68,7 +68,11 @@ const props = defineProps({
asConfig: {
type: Boolean,
default: false,
}
},
isInline: {
type: Boolean,
default: false,
},
});

const parentContainer = injectContainerContext(containerContextKey);
Expand DownExpand Up@@ -230,6 +234,7 @@ const provided = {
desyncField,
components,
asConfig: toRef(() => props.asConfig),
isInline: toRef(() => props.isInline),
isTrackingOriginValues: computed(() => !!props.originValues),
setValues,
setFieldValue,
Expand Down
5 changes: 2 additions & 3 deletionsresources/js/components/ui/Publish/Tabs.vue
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -13,7 +13,7 @@ import ElementContainer from '@/components/ElementContainer.vue';
import ShowField from '@/components/field-conditions/ShowField.js';

const slots = useSlots();
const { blueprint, visibleValues, extraValues, revealerValues, errors, hiddenFields, setHiddenField, container,name } = injectContainerContext();
const { blueprint, visibleValues, extraValues, revealerValues, errors, hiddenFields, setHiddenField, container,isInline } = injectContainerContext();
const tabs = ref(blueprint.value.tabs);
const width = ref(null);
const sidebarTab = computed(() => tabs.value.find((tab) => tab.handle === 'sidebar'));
Expand DownExpand Up@@ -52,8 +52,7 @@ function setActive(tab) {
}

function setActiveTabFromHash() {
if (name.value.includes('relate-fieldtype-inline')) return;

if (isInline.value) return;
if (window.location.hash.length === 0) return;

setActive(window.location.hash.substr(1));
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp