-
Notifications
You must be signed in to change notification settings - Fork 136
#458 - allow user to set formenctype #459
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
#458 - allow user to set formenctype #459
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good. Can we document this behavior somewhere? Maybe in one of the examples of the form component?
@lovasoa will do. Still testing it. I had some trouble with applying it to the textarea input directly. Seems adding it to the submit button works. I want to make sure this works with also a file input present as they would both trigger adding the attribute to the submit button... |
Okay, good! Switching this pr to draft mode, then. |
@lovasoa after reading the following:
I decided to expose the Further, I would suggest we remove the
For now I updated the docs recommending to set it explicitly for file upload rather than rely on current behaviour. I also added an example of setting different We can decide whether to alter existing behaviour independently of this PR |
I understand what you mean. But the whole promise of SQLPage is to make it easy to build UIs on top of databases without any other knowledge than just sql. I really think file upload should work by default, and not require even knowing what formenctype means. |
Revert accidental change
For reference - here is proposed changes that I think will make the handling of form encoding to work intuitively whilst still allowing flexability for developer to set specific encoding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, let's merge it like this at the moment, I'll update it later. Thanks for the contribution!
No problem. Thanks for SQLpage making UI easy. Sorry I couldn't catch the vision on this one. It's hard to see the forrest through the trees sometimes. |
Closes #458