File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -549,8 +549,8 @@ var HookManager_default = class {
549
549
}
550
550
} ;
551
551
552
- // ../../../node_modules/.pnpm/[email protected] /node_modules/ idiomorph/dist/idiomorph.esm.js
553
- var Idiomorph = function ( ) {
552
+ // ../../../node_modules/idiomorph/dist/idiomorph.esm.js
553
+ var Idiomorph = ( function ( ) {
554
554
"use strict" ;
555
555
let EMPTY_SET = /* @__PURE__ */ new Set ( ) ;
556
556
let defaults = {
@@ -1093,7 +1093,7 @@ var Idiomorph = function() {
1093
1093
morph,
1094
1094
defaults
1095
1095
} ;
1096
- } ( ) ;
1096
+ } ) ( ) ;
1097
1097
1098
1098
// src/normalize_attributes_for_comparison.ts
1099
1099
function normalizeAttributesForComparison ( element ) {
@@ -2045,6 +2045,7 @@ var Component = class {
2045
2045
if ( ! controls . shouldRender ) {
2046
2046
return ;
2047
2047
}
2048
+ this . hooks . triggerHook ( "loading.state:finished" , this . element ) ;
2048
2049
if ( backendResponse . response . headers . get ( "Location" ) ) {
2049
2050
if ( this . isTurboEnabled ( ) ) {
2050
2051
Turbo . visit ( backendResponse . response . headers . get ( "Location" ) ) ;
@@ -2053,7 +2054,6 @@ var Component = class {
2053
2054
}
2054
2055
return ;
2055
2056
}
2056
- this . hooks . triggerHook ( "loading.state:finished" , this . element ) ;
2057
2057
const modifiedModelValues = { } ;
2058
2058
Object . keys ( this . valueStore . getDirtyProps ( ) ) . forEach ( ( modelName ) => {
2059
2059
modifiedModelValues [ modelName ] = this . valueStore . get ( modelName ) ;
Original file line number Diff line number Diff line change @@ -359,6 +359,11 @@ export default class Component {
359
359
return ;
360
360
}
361
361
362
+ // remove the loading behavior now so that when we morphdom
363
+ // "diffs" the elements, any loading differences will not cause
364
+ // elements to appear different unnecessarily
365
+ this . hooks . triggerHook ( 'loading.state:finished' , this . element ) ;
366
+
362
367
if ( backendResponse . response . headers . get ( 'Location' ) ) {
363
368
// action returned a redirect
364
369
if ( this . isTurboEnabled ( ) ) {
@@ -370,11 +375,6 @@ export default class Component {
370
375
return ;
371
376
}
372
377
373
- // remove the loading behavior now so that when we morphdom
374
- // "diffs" the elements, any loading differences will not cause
375
- // elements to appear different unnecessarily
376
- this . hooks . triggerHook ( 'loading.state:finished' , this . element ) ;
377
-
378
378
/**
379
379
* For any models modified since the last request started, grab
380
380
* their value now: we will re-set them after the new data from
You can’t perform that action at this time.
0 commit comments