Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page will not be saved if InputfieldSimpleMDE field has html5 required option #8

Closed
tiefenb opened this issue Mar 21, 2019 · 1 comment

Comments

@tiefenb
Copy link

tiefenb commented Mar 21, 2019

PW: 3.0.127

If a field with InputfieldSimpleMDE as the required option and also the html5 required option, the page can't be saved and in the console there is an exception. Also if the field as data.

Bildschirmfoto 2019-03-21 um 11 31 03

Bildschirmfoto 2019-03-21 um 11 29 13

@outflux3
Copy link
Owner

I'm pretty sure we're just using the plain field, so this would be an issue of that:

sparksuite/simplemde-markdown-editor#324

sparksuite/simplemde-markdown-editor#484

one person suggested this as a workaround, which you could add in your custom js for the admin:

$('#original-text-area').attr('required', false); $('.CodeMirror textarea').attr('required', true);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants