From 6a725d27de28820d295690f854f35923e3235b68 Mon Sep 17 00:00:00 2001 From: mirivlad Date: Mon, 30 Mar 2026 13:05:06 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20JSON=20=D1=8D=D0=BA=D1=80=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=B2=20tag?= =?UTF-8?q?s-input?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✅ {!! json_encode() !!} вместо {{ json_encode() }} ✅ Правильный JavaScript формат Set Co-authored-by: Qwen-Coder --- resources/views/components/tags-input.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/components/tags-input.blade.php b/resources/views/components/tags-input.blade.php index 8b8eced..8859bf3 100644 --- a/resources/views/components/tags-input.blade.php +++ b/resources/views/components/tags-input.blade.php @@ -53,7 +53,7 @@ document.addEventListener('DOMContentLoaded', function() { const input = document.getElementById('{{ $name }}-input'); const tagsContainer = document.getElementById('{{ $name }}-tags'); const hiddenInput = document.getElementById('{{ $name }}'); - let selectedTags = new Set({{ json_encode(array_map('strval', is_array($value) ? $value : [])) }}); + let selectedTags = new Set({!! json_encode(array_map('strval', is_array($value) ? $value : [])) !!}); // Инициализация TomSelect const select = new TomSelect(input, {