diff --git a/composer.json b/composer.json index f2b06e4..7031937 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ "require": { "php": ">=8.1", - "juniwalk/utils": ">=2.4.1", + "juniwalk/utils": ">=2.9.2", "juniwalk/orm": ">=0.7", "nette/application": "^3.0", "nette/forms": "^3.0", diff --git a/src/AbstractForm.php b/src/AbstractForm.php index 9b27327..de91c94 100644 --- a/src/AbstractForm.php +++ b/src/AbstractForm.php @@ -249,8 +249,8 @@ public function renderModal(bool $keyboard = false, bool|string $backdrop = 'sta $this->setLayout(Layout::Modal); $this->onRender[] = fn($self, $template) => $template->setParameters([ 'modalOptions' => [ - 'data-backdrop' => Format::scalarize($backdrop), - 'data-keyboard' => Format::scalarize($keyboard), + 'data-backdrop' => Format::stringify($backdrop), + 'data-keyboard' => Format::stringify($keyboard), ], ]);