TheComputerM / svelte-materialify

A Material UI Design Component library for Svelte heavily inspired by vuetify.
https://svelte-materialify.vercel.app
MIT License
623 stars 84 forks source link

searchable TextField on Select component (enhancement) #195

Open romanown opened 3 years ago

romanown commented 3 years ago

need the Select component with searchable TextField caption with live search. example the Select component with cities or countries with fetched data from backend. after fix no show name of TextField after load data after fetching (as i show in issue and pull request). example internal code


<TextField
          style={style.textField}
          label={props.label}
          onChange={onTextChange}
          onMouseDown={onOpen}
          onKeyUp={onKeyUp}
          value={text}
        />
 <Select
                value={city}
                items={cities}
                on:change={(e) => selectParams(e, "city")}
                >City</Select
              >
nikobari94 commented 3 years ago

245 My pull request meets your requirements: if you bind the filterValue variable with a local variable you can change the items passed to Select component with a function that fetch from BackEnd the items based on the filterValue applied.