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

Prevent event filebrowse issue #1282

Closed
itajackass opened this issue Aug 7, 2018 · 2 comments
Closed

Prevent event filebrowse issue #1282

itajackass opened this issue Aug 7, 2018 · 2 comments
Labels

Comments

@itajackass
Copy link

itajackass commented Aug 7, 2018

i'd like to prevent filebrowse to open based on a value of a input val.
I tried:

$('#input-id').on('filebrowse', function(event) {

    var xxx = $("#input-sample").val();

    if ( xxx == 0 ) {
           event.preventDefault();
           alert("You can't select a file at this moment....");
    }

});

But filebrowse still open. event.preventDefault() seems to working

@kartik-v kartik-v added the bug label Aug 7, 2018
@kartik-v
Copy link
Owner

kartik-v commented Aug 7, 2018

Corrected via the above fix - retry and let know.

@lorife
Copy link

lorife commented Jan 25, 2021

Hello, This problem is still present in the lastest version

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

No branches or pull requests

3 participants