Fix for 0674706 existing attributes where editable without the edit button being pressed. Only new attributes should be editable by default

This commit is contained in:
Deon George 2025-07-07 09:42:20 +08:00
parent e667d139b0
commit 685114f6a3

View File

@ -22,7 +22,7 @@
name="{{ $o->name_lc }}[{{ $langtag }}][]" name="{{ $o->name_lc }}[{{ $langtag }}][]"
value="{{ $value ?: ($av ?? '') }}" value="{{ $value ?: ($av ?? '') }}"
placeholder="{{ ! is_null($x=$tv->get($loop->index)) ? $x : '['.__('NEW').']' }}" placeholder="{{ ! is_null($x=$tv->get($loop->index)) ? $x : '['.__('NEW').']' }}"
@readonly(! $edit) @readonly(! $new)
@disabled($o->isDynamic())> @disabled($o->isDynamic())>
<div class="invalid-feedback pb-2"> <div class="invalid-feedback pb-2">