We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c663ea3 + a4dc2be commit e1c7971Copy full SHA for e1c7971
src/Html/Builder.php
@@ -260,7 +260,8 @@ protected function makeDataScript(array $data)
260
{
261
$script = '';
262
foreach ($data as $key => $value) {
263
- $script .= PHP_EOL . "data.{$key} = '{$value}';";
+ $dataValue = $this->isCallbackFunction($value, $key) ? $value : "'{$value}'";
264
+ $script .= PHP_EOL . "data.{$key} = {$dataValue};";
265
}
266
267
return $script;
0 commit comments