Skip to content

Commit

Permalink
Disable autocorrect and auto-capitalization for Slug fields too
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Mar 19, 2019
1 parent 30da088 commit 0f85b39
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Changed
- The `_includes/forms/text` Control Panel template now supports passing `autocorrect: false` and `autocapitalize: false`, to disable autocorrect and auto-capitalization on iOS devices.
- iOS autocorrect and auto-capitalization has been disabled for all core “Handle” fields in the Control Panel. ([#4009](https://github.com/craftcms/cms/issues/4009))
- iOS autocorrect and auto-capitalization has been disabled for all core “Handle” and “Slug” fields in the Control Panel. ([#4009](https://github.com/craftcms/cms/issues/4009))

## 3.1.19 - 2019-03-19

Expand Down
2 changes: 2 additions & 0 deletions src/templates/categories/_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@
siteId: category.siteId,
id: 'slug',
name: 'slug',
autocorrect: false,
autocapitalize: false,
value: category.slug,
placeholder: "Enter slug"|t('app'),
errors: (category.getErrors('slug')|merge(category.getErrors('uri')))
Expand Down
2 changes: 2 additions & 0 deletions src/templates/entries/_edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@
siteId: entry.siteId,
id: 'slug',
name: 'slug',
autocorrect: false,
autocapitalize: false,
value: entry.slug,
placeholder: "Enter slug"|t('app'),
errors: (not isVersion ? entry.getErrors('slug')|merge(entry.getErrors('uri'))),
Expand Down

0 comments on commit 0f85b39

Please sign in to comment.