kartik-v / bootstrap-fileinput

An enhanced HTML 5 file input for Bootstrap 5.x/4.x./3.x with file preview, multiple selection, and more features.
http://plugins.krajee.com/file-input
Other
5.36k stars 2.39k forks source link

Question: autocomplete on button? #1847

Closed goschtl closed 8 months ago

goschtl commented 1 year ago

Hi,

i have a simple question about the autocomplete attribute in the button-generation function

        if (type === 'fullscreen' || type === 'borderless' || type === 'toggleheader') {
            params += ' data-toggle="button" aria-pressed="false" autocomplete="off"';
        }

Here our Screenread complains that autocomplete is not a valid attribute on the button elment.

https://github.com/kartik-v/bootstrap-fileinput/blob/master/js/fileinput.js#L2881

Thanks Christian

kartik-v commented 11 months ago

This attribute may not be needed for the button. Will check. Noting an enhancement.