From 3d4028850660e47184ef660394481e841936d9e6 Mon Sep 17 00:00:00 2001 From: Deon George Date: Sun, 19 Jan 2025 11:31:52 +1100 Subject: [PATCH] Enhancement to Add Value to include the input group. --- resources/views/components/attribute/widget/options.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/components/attribute/widget/options.blade.php b/resources/views/components/attribute/widget/options.blade.php index 59d31a51..af226151 100644 --- a/resources/views/components/attribute/widget/options.blade.php +++ b/resources/views/components/attribute/widget/options.blade.php @@ -12,8 +12,8 @@ $(document).ready(function() { // Create a new entry when Add Value clicked $('#{{ $o->name_lc }}.addable').click(function (item) { - var cln = $(this).parent().parent().find('input:last').clone(); - cln.attr('value','').attr('placeholder', '[@lang('NEW')]'); + var cln = $(this).parent().parent().find('input:last').parent().clone(); + cln.find('input:last').attr('value','').attr('placeholder', '[@lang('NEW')]'); cln.appendTo('#' + item.currentTarget.id) }); });