Skip to content

Handling of Input File type #15

@mretallack

Description

@mretallack

I have noticed that Chrome generates the following error if the page contains an input type of "file".

Uncaught InvalidStateError: Failed to read the 'selectionStart' property from 'HTMLInputElement': The input element's type ('file') does not support selection.

I think a simple fix for this is to change the following line:

$(':input').not('[type="reset"]').not('[type="submit"]').on('focus, click', function (e) {

to

$(':input').not('[type="reset"]').not('[type="submit"]').not('[type="file"]').on('focus, click', function (e) {

Mark.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions