Skip to content

selectionDirection missing from HTMLInputElement #7561

Closed
@RuiNtD

Description

@RuiNtD

TypeScript Version:

1.8.7

Code

var input = document.createElement('input');
var dir = input.selectionDirection;
input.setSelectionRange(0, 0, 'none');

Expected behavior:
selectionDirection property would be accessible for HTMLInputElements and I would be able to set selectionDirection propety using setSelectionRange.
Actual behavior:
Lines 2 and 3 of the above code give the errors:

  • Property 'selectionDirection' does not exist on type 'HTMLInputElement'.
  • Supplied parameters do not match any signature of call target.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions