Skip to content

Commit 514d29b

Browse files
authored
made readonly undefined
1 parent fce1540 commit 514d29b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/stories/rails-form-framework/TextInput.stories.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export const InputTemplate = ({
220220
placeholder={placeholder}
221221
id="input-id"
222222
type="text"
223-
readonly={readOnly ? 'true' : 'false'}
223+
readonly={readOnly ? 'true' : undefined}
224224
className={clsx(
225225
'FormControl-input',
226226
size && `${size}`,
@@ -262,7 +262,7 @@ export const InputTemplate = ({
262262
id="input-id"
263263
type="text"
264264
disabled={disabled ? 'true' : undefined}
265-
readonly={readOnly ? 'true' : 'false'}
265+
readonly={readOnly ? 'true' : undefined}
266266
className={clsx(
267267
'FormControl-input',
268268
size && `${size}`,

0 commit comments

Comments
 (0)