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
siagapendis.com - Submit (Cari) button refreshes the page in Firefox #41639
Comments
Thanks for the report! Tested with: Moving to Needsdiagnosis. |
$(document).on('click','#search',function(){
$('#errormessage_search').empty();
$('#search').prop('disabled',true);
$('#pencarian').slideUp('fast');
$('#load_table').slideDown('fast');
$('#table_body').empty();
var kabupaten_id = $('#city').val();
var nama_guru = $('#nama_guru').val();
… when we do the click. It starts right away with a navigation. https://siagapendis.com/plugins/jquery/jquery-2.1.4.min.js The HTTP POST of the search returns:
but it seems to break in JQuery? |
This one's really silly. They are not cancelling the
But why doesn't Chrome also navigate? That I don't know yet. |
Oh, the answer was right there in the code @karlcow listed, it was this line:
Disabling the button this way as it is clicked works in Chrome, but not Firefox. I have no idea why, though there is a bug filed to figure this out already. It seems like it's considered a Firefox bug. It's unclear when that bug will be fixed, so if the site is willing to accept a trivial fix, they can just use the fix I showed above. |
The owner of this site is contactable via email: direktorat.pai@gmail.com. |
Sent via email. Moving to sitewait. |
This issue is still reproducible |
URL: https://siagapendis.com/index/pencarian
Browser / Version: Firefox 69.0
Operating System: Ubuntu
Tested Another Browser: Yes
Problem type: Site is not usable
Description: Submit (Cari) button refreshes the page in Firefox
Steps to Reproduce:
In Firefox, the page refreshes while loading the data. In Google Chrome 77.0.3865.90 a loading bar is shown instead (and return an error since the entered search result is invalid). Note that this issue does not depend on the form inputs itself.
This was originally reported on Mozilla Indonesia Telegram group back in May, while this issue still persists as of today.
Browser Configuration
From webcompat.com with ❤️
The text was updated successfully, but these errors were encountered: