-
-
Notifications
You must be signed in to change notification settings - Fork 331
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
[form] not working click input after initialise form #746
Comments
Regression since adf5937 through #661 which implemented the clean/dirty states to a form stopped the event propagation in the Fomantic-UI/src/definitions/behaviors/form.js Lines 302 to 304 in 7be57fc
If @prudho Do you know why this line was necessary (or how we can fix it otherwise) ? |
not fixed type file(empty file) |
@apple-idn As said, if the above mentioned line is removed, then your issue is fixed. @prudho Do you remember why the above mentioned stopPropagation was needed in the isDirty method? |
MMmmmh... I'm not sure, maybe it's to avoid triggering multiple events when more than one item is selected. We should do some tests to be sure enough to remove it. |
thanks @lubber-de BUT answer not complete where input type files empty(not execution), where $('body').on('change', 'input[type="file"]', function(e) {..... not running after, same case if only input type file on form i's EMPTY how do that fix input type file "empty" |
It's fixed now by #767 <input class="dede" type="text" placeholder="Pilih File (*.xlsx)..." readonly="" nama="dum_file">
<!-- name instead of nama --> //$($this) has to be $(this)
var ini = $($this);
console.log(e);
var himp = $(this).closest('.action');
var filename = e.target.files[0].name;
// selector has to be 'input[name="dum_file"]
// filename instead of fileName (typo)
himp.find('input[type="dum_file"]').val(fileName); I corrected everything here😉 |
wow it's very clear and fixed thanks very much @lubber-de |
Bug Report
[Form] Inside on click form not working
Steps to reproduce
Expected result
open file it open
Actual result
not working input click
Testcase
https://jsfiddle.net/allwe/1bpuv5r8/2/
Screenshot (when possible)
Version
2.7.5
The text was updated successfully, but these errors were encountered: