react-materialize icon indicating copy to clipboard operation
react-materialize copied to clipboard

Autocomplete doesn't work

Open Giuseppe98PG opened this issue 6 years ago • 6 comments

Description

Autocomplete doesn't work

Steps to Reproduce

  1. Install React-Materialize
  2. Import Autocomplete from 'react-materialize'
  3. Copy and paste this example http://react-materialize.github.io/react-materialize/?path=/story/javascript-autocomplete--default

Expected behavior: The autocomplete now should work but it doesn't

Actual behavior: The SPA crashes or the autocomplete doesn't work without giving any feedback

Versions

react-materialize: 3.3.4 materialize-css: 1.0.0 react: 16.8.6

Thanks for helping out!

Giuseppe98PG avatar Aug 05 '19 14:08 Giuseppe98PG

Are we sure that materialize-css javascript is being included? Does any other js component work or only Autocomplete fails?

alextrastero avatar Aug 13 '19 10:08 alextrastero

Me too, having a problem in AutoComplete error: Autocomplete expected '}' inside options but i only copy what said here: http://react-materialize.github.io/react-materialize/?path=/story/javascript-autocomplete--default

React: 16.5.2 react-materialize: 3.3.4 materialize-css: 1.0.0

prag-onlineshop avatar Aug 22 '19 04:08 prag-onlineshop

I can confirm that problem. It think it should be labeled "bug" instead of "question".

madnight avatar Aug 31 '19 07:08 madnight

I have just tried with this sample and it works as expected. <Autocomplete options={{data: {'Gus Fring': null,'Saul Goodman': null,'Tuco Salamanca': 'https://placehold.it/250x250'}}} placeholder="Insert here" />

Can you paste a code sample?

alextrastero avatar Aug 31 '19 09:08 alextrastero

Screen Shot 2019-08-31 at 11 50 43 AM

alextrastero avatar Aug 31 '19 09:08 alextrastero

Hey @alextrastero, testing this I've found that when providing dynamic data the Autocomplete didn't update itself with the new data provided in the options prop.

CloudPower97 avatar Sep 09 '19 21:09 CloudPower97