Commit 0513dd8
authored
feat: default autofocus prop value to false (#706)
# Summary
On web when `autoFocus` prop was not provided in `EnrichedTextInput` -
it was `undefined`, Tiptap would default to the enabled autofocus, which
we don't want.
Now the `autoFocus` prop defaults to `false` if not provided.
Added the same default value in the native `EnrichedTextInput` component
for consistency. That change does practically nothing, as earlier it
also defaulted to a disabled auto-focus if not provided, but it was
handled on the native side - now it happens earlier in JS.
## Compatibility
| OS | Implemented |
| ------- | :---------: |
| iOS | ✅ |
| Android | ✅ |
| Web | ✅ |
## Checklist
- [ ] E2E tests are passing
- [ ] Required E2E tests have been added (if applicable)1 parent d04d1df commit 0513dd8
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
0 commit comments