We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfabcb0 commit c55401eCopy full SHA for c55401e
components/swap-functions.js
@@ -86,6 +86,13 @@ const shouldCopyProps = (el) => {
86
const persistProps = el.dataset.astroTransitionPersistProps;
87
return persistProps == null || persistProps === "false";
88
};
89
+const swapFunctions = {
90
+ deselectScripts,
91
+ swapRootAttributes,
92
+ swapHeadElements,
93
+ swapBodyElement,
94
+ saveFocus
95
+};
96
const swap = (doc) => {
97
deselectScripts(doc);
98
swapRootAttributes(doc);
@@ -100,6 +107,7 @@ export {
100
107
saveFocus,
101
108
swap,
102
109
swapBodyElement,
110
+ swapFunctions,
103
111
swapHeadElements,
104
112
swapRootAttributes
105
113
0 commit comments