Skip to content

Commit bb140c5

Browse files
Merge pull request #1963 from shivendra-webkul/inline
Fixed Inline update issue
2 parents edf3c0e + aab1327 commit bb140c5

File tree

1 file changed

+11
-1
lines changed
  • packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline

1 file changed

+11
-1
lines changed

packages/Webkul/Admin/src/Resources/views/components/form/control-group/controls/inline/text.blade.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ class="group relative h-[18px] !w-full pl-2.5"
3737
:style="{ 'text-align': position }"
3838
>
3939
<span class="cursor-pointer truncate rounded">
40-
@{{ (valueLabel || inputValue || '').length > 20 ? (valueLabel || inputValue).substring(0, 20) + '...' : (valueLabel || inputValue) }}
40+
@{{
41+
(transformedLabel || inputValue || '').length > 20
42+
? (transformedLabel || inputValue).substring(0, 20) + '...'
43+
: (transformedLabel || inputValue)
44+
}}
4145
</span>
4246
4347
<!-- Tooltip -->
@@ -171,6 +175,8 @@ class="flex items-center justify-center bg-red-100 p-1 hover:bg-red-200 ltr:roun
171175
isEditing: false,
172176
173177
isRTL: document.documentElement.dir === 'rtl',
178+
179+
transformedLabel: this.valueLabel,
174180
};
175181
},
176182
@@ -211,6 +217,8 @@ class="flex items-center justify-center bg-red-100 p-1 hover:bg-red-200 ltr:roun
211217
212218
if (this.url) {
213219
let formData = new FormData();
220+
221+
this.transformedLabel = this.inputValue;
214222
215223
formData.append(this.name, this.inputValue);
216224
@@ -226,6 +234,8 @@ class="flex items-center justify-center bg-red-100 p-1 hover:bg-red-200 ltr:roun
226234
.catch((error) => {
227235
this.inputValue = this.value;
228236
237+
this.transformedLabel = this.inputValue;
238+
229239
this.$emitter.emit('add-flash', { type: 'error', message: error.response.data.message });
230240
});
231241
}

0 commit comments

Comments
 (0)