Skip to content

select value is not reflected if the list of options are loaded at a later time #2241

@westbrma

Description

@westbrma

Describe the bug

I am loading a list of select options from an API so the options get populated a bit after the element is rendered. The value of the select is already set but is not reflected after the list is loaded.

Your Example Website or App

https://playground.solidjs.com/anonymous/afff844c-d8cb-40ab-b368-7b0fe268ab6d

Steps to Reproduce the Bug or Issue

  1. create a set its value use to populate its options from an array load the array of options using a timeout so that is populated after the render Expected behavior I expect the value of the select to be reflect the correct option regardless of when that option is rendered Screenshots or Videos No response Platform Browser: [Chrome] Additional context No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions