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
Comments
@micmania1 Can you confirm this against 3.1? I could not reproduce it. Maybe a CMS issue? |
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 |
…g activated on "enter" key press (relates to CMS issue at silverstripe/silverstripe-cms#1288).
…g activated on "enter" key press (relates to framework issue at silverstripe/silverstripe-framework#3181).
@micmania1 @pedro2555 @kinglozzer Ok, this was a combined fix applied to
|
…g activated on "enter" key press (relates to CMS issue at silverstripe/silverstripe-cms#1288).
…g activated on "enter" key press (relates to framework issue at silverstripe/silverstripe-framework#3181).
FIX (partial) for #3181 where non-submit buttons are being activated on "enter" key press.
@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 |
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.
The text was updated successfully, but these errors were encountered: