File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed
apps/frontend/src/lib/components/blocks/widget Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change 8686 <Dialog .Header class ="border-b p-4" on:dblclick ={() => (editing = true )}>
8787 <Dialog .Title >
8888 {#if editing }
89- <Input class ="w-1/2" autofocus on:focus ={(e ) => e .target .select ()} bind:value ={widget .name } />
89+ <Input
90+ on:blur ={() => {
91+ editing = false
92+ }}
93+ class =" w-1/2"
94+ autofocus
95+ on:focus ={(e ) => e .target .select ()}
96+ bind:value ={widget .name }
97+ />
9098 {:else }
9199 {widget .name }
92100 {/if }
109117 <div class =" flex w-1/4 flex-col border-l px-4 py-2" >
110118 <div class =" flex-1" >
111119 {#if widget .item .type === " aggregate" }
112- <AggregateConfig {tableId } {viewId } {widget } aggregate ={widget .item .aggregate } />
120+ <AggregateConfig
121+ {tableId }
122+ {viewId }
123+ {widget }
124+ aggregate ={widget .item .aggregate }
125+ onSuccess ={() => {
126+ editing = false
127+ }}
128+ />
113129 {/if }
114130 </div >
115131 </div >
You can’t perform that action at this time.
0 commit comments