Skip to content

Commit

Permalink
Disable browser validation for page forms
Browse files Browse the repository at this point in the history
resolves #3247
  • Loading branch information
brandonkelly committed Aug 30, 2018
1 parent aa96d05 commit 9125cd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

### Changed
- Browser-based form validation is now disabled for page forms. ([#3247](https://github.com/craftcms/cms/issues/3247))

### Fixed
- Fixed a bug where element selection modals could be initialized without a default source selected, if some of the sources were hidden for not being available on the currently-selected site. ([#3227](https://github.com/craftcms/cms/issues/3227))

Expand Down
2 changes: 1 addition & 1 deletion src/templates/_layouts/cp.html
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ <h2>{{ systemName }}&nbsp;<span data-icon="downangle"></span></h2>
<main id="main" role="main">

{% if fullPageForm -%}
<form id="main-form" method="post" accept-charset="UTF-8" data-saveshortcut{% if saveShortcutRedirect is defined %} data-saveshortcut-redirect="{{ saveShortcutRedirect|hash }}"{% endif %} data-confirm-unload>
<form id="main-form" method="post" accept-charset="UTF-8" data-saveshortcut{% if saveShortcutRedirect is defined %} data-saveshortcut-redirect="{{ saveShortcutRedirect|hash }}"{% endif %} data-confirm-unload novalidate>
{{- csrfInput() }}
{%- endif %}

Expand Down

0 comments on commit 9125cd8

Please sign in to comment.