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

BUG UploadField hijacking return key #3181

Closed
micmania1 opened this issue Jun 2, 2014 · 4 comments
Closed

BUG UploadField hijacking return key #3181

micmania1 opened this issue Jun 2, 2014 · 4 comments

Comments

@micmania1
Copy link
Contributor

The bug was originally reported on stackoverflow and I can confirm it exists in the latest stable release of 3.1.

"I have page/form in the SS 3 CMS that has an uploadfield on it - when I hit enter on other fields the popup to attach a file automatically shows, how can I stop this behaviour?"
http://stackoverflow.com/questions/23988952/silverstripe-3-uploadfield-stop-upload-popup-appearing-when-enter-is-pressed

To reproduce
Create a Page/DataObject.
Add a TextField and UploadField
Focus on the TextField then press the return key.

If you haven't uploaded an image, it will trigger the modal to select a file.
If you have uploaded an image it will trigger the edit form of the upload field.

@pedro2555
Copy link
Contributor

@micmania1 Can you confirm this against 3.1?

I could not reproduce it. Maybe a CMS issue?

@patricknelson
Copy link
Contributor

My bug report at silverstripe/silverstripe-cms#1288 (corrected for CMS repository) may be a duplicate of this. However, work is needed on both repositories, it appears. Ping @kinglozzer

patricknelson added a commit to patricknelson/silverstripe-framework that referenced this issue Oct 5, 2015
patricknelson added a commit to patricknelson/silverstripe-cms that referenced this issue Oct 5, 2015
@patricknelson
Copy link
Contributor

patricknelson added a commit to patricknelson/silverstripe-framework that referenced this issue Oct 6, 2015
patricknelson added a commit to patricknelson/silverstripe-cms that referenced this issue Oct 6, 2015
tractorcow pushed a commit that referenced this issue Oct 6, 2015
FIX (partial) for #3181 where non-submit buttons are being activated on "enter" key press.
@patricknelson
Copy link
Contributor

@kinglozzer This issue should be since it has now been resolved by #4662 👍

I duplicated it and then fixed it after submitting my CMS issue at silverstripe/silverstripe-cms#1288

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

No branches or pull requests

4 participants