Skip to content

Select first option by default #21

@orslumen

Description

@orslumen

When selectedIndex is requested for the first time, I think it is best to select the first item in the dropdown if nothing was selected and an option is available.

I did not verify that this is according to specs, but at least FF, IE, Safari and Chrome will never return null in case an option is available.

One way to fix this can be found in orslumen@18d271d

But it is probably more correct to select the first option once the HTML is parsed and no options have been marked as selected yet.

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