Compare commits

...

2 commits

Author SHA1 Message Date
Simon Vieille 271bd1a15e
fix CheckboxForm modelValue test
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2024-04-18 20:28:17 +02:00
Simon Vieille f8809926c1
update default values 2024-04-18 20:28:05 +02:00
2 changed files with 3 additions and 3 deletions

View file

@ -404,7 +404,7 @@ export default {
tool: localStorage.getItem('tool') ?? 'heading',
author: localStorage.getItem('author') ?? 'Author name',
authorSize: localStorage.getItem('authorSize') ?? 1.5,
authorShow: localStorage.getItem('authorShow') ?? 1,
authorShow: localStorage.getItem('authorShow') ?? true,
authorPadding: localStorage.getItem('authorPadding') ?? 10,
authorAlign: localStorage.getItem('authorAlign') ?? 'left',
authorTextColor: localStorage.getItem('authorTextColor') ?? '#fff9e6',
@ -427,7 +427,7 @@ export default {
width: localStorage.getItem('width') ?? 1200,
height: localStorage.getItem('height') ?? 600,
contentPadding: localStorage.getItem('contentPadding') ?? 20,
allowHtml: localStorage.getItem('allowHtml') ?? 0,
allowHtml: localStorage.getItem('allowHtml') ?? false,
ogMaxWidth: 100,
tools: {
heading: 'Heading',

View file

@ -3,7 +3,7 @@
:id="id"
class="mr-2 rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50"
type="checkbox"
:checked="modelValue === 'true'"
:checked="modelValue === 'true' || modelValue === true"
:class="$attrs.class"
@change="$emit('change', $event)"
@input="$emit('update:modelValue', $event.target.checked)"