gwt-material-addins icon indicating copy to clipboard operation
gwt-material-addins copied to clipboard

MaterialAutoComplete does not fire events

Open acaliaro opened this issue 7 years ago • 3 comments

Hi guys. I have already reported my problem on Gitter

I have a MaterialAutoComplete like this

    xmlns:ma="urn:import:gwt.material.design.addins.client"

...

    <m:MaterialRow grid="12" ui:field="materialRowAutocompleteNegozi">
        <m:MaterialColumn grid="s4" >
            <ma:autocomplete.MaterialAutoComplete ui:field="autocompleteNegozi" placeholder="Negozio" limit="1" directInputAllowed="false"  />
        </m:MaterialColumn>
    </m:MaterialRow>

It works fine... When I tap some characters, a list appears:

image

The problem occours when I select an Item, using mouse or using keyboard's arrows:

image

This is the result. Instead a chip layout I have a Text layout. It's not the biggest problem.. the real problem is that events do not rise (SelectionHandler and ValueChangedHandler) and autocomplete.GetValue() return an empty list

There is a solution for this? Thanks Alessandro

acaliaro avatar Apr 24 '18 07:04 acaliaro

Hi @kevzlou7979 , do you think it's a bug or a mine implementation problem? A friend of mine use the MaterialAutoComplete without problems... in the same way I use it...

Do you have a workaround? Thanks

acaliaro avatar May 05 '18 09:05 acaliaro

Do you have a type="TEXT" , if yes, then you are using the wrong type.

kevzlou7979 avatar Aug 30 '18 03:08 kevzlou7979

I have not understand... where should I have type TEXT?

acaliaro avatar Sep 11 '18 22:09 acaliaro