User tests: Successful: Unsuccessful:
Pull Request for Issue #17741.
Added type="button"
to the datepicker's action buttons as the browser interprets buttons
without a type as submit button, so it (the first button in the form) gets triggered when pressing enter within the containing form.
See #17741.
Nothing should change with the selected dates visible in Start Publishing and in Created Date
Input of Start Publishing is cleared.
(It is always the input of the first date field in the form that is cleared)
None.
Maybe the form should be submitted when pressing enter, this isn't happening automatically as the toolbar buttons are outside of the form.
Developed @icampus
Category | ⇒ | JavaScript |
Status | New | ⇒ | Pending |
I have tested this item
Same behaviour as without PR: Curser in "Created Date" and hit "Enter" get "Start Publishing" empty.
3.8.0-beta5-dev
Multilanguage Site
macOS Sierra, 10.12.6
Firefox 55 (64-bit)
@franz-wohlkoenig @DrDreave weird I just tried the original code in safari and I don't get a wrong behaviour. Can you please mention the browser and you Joomla setup (custom fields, multilingual etc)
EDIT Firefox and Chrome submit the form on enter
I can confirm the original issue in Chrome Version 60.0.3112.101 and Firefox 55.0.2 on MacOS. The date input gets cleared, the form doesn't get submitted. The PR fixes the clearance of the date input on a stock joomla 3.8. I'll perform further tests on my Windows PC in the next hours.
Safari seems to work fine without the patch as mentioned by @dgt41.
@franz-wohlkoenig Please try to clear your browser cache. Maybe the browser didn't reload the minified javascript after applying the patch.
I have tested this item
Cleared Browsercache helped.
I have tested this item
Cleared Browsercache helped.
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC after two successful tests.
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-08-31 11:52:41 |
Closed_By | ⇒ | mbabker | |
Labels |
Added:
?
|
@DrDreave on code review this looks fine, thanks!