Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Multiple mode: Search text is not cleared on tab out #367

Open
@afcastano

Description

@afcastano

When the search value does not match any option and the user tabs out the select, the text remains visible. This might lead to confusions since the user could think the value is valid.
It doesn't happen if the user clicks out. In this case, the search text is deleted.

Activity

YidingW

YidingW commented on Nov 17, 2014

@YidingW

+1

cgwyllie

cgwyllie commented on Nov 18, 2014

@cgwyllie

+1 I saw this issue too, but I'm not sure if it's a bug or just a strange/non-obvious default.

I was able to resolve this by using the reset-search-input="true" attribute on the <ui-select/>. Reference: https://github.com/angular-ui/ui-select/wiki/ui-select#attributes

amcdnl

amcdnl commented on Nov 19, 2014

@amcdnl
Contributor

@afcastano does that solve your problem?

YidingW

YidingW commented on Nov 19, 2014

@YidingW

I just tried the option @cgwyllie mentioned. It does clear the search text.

I think the default setting should be 'true'.

amcdnl

amcdnl commented on Nov 19, 2014

@amcdnl
Contributor

@YidingW Ya, I agree too. I exposed a provider to be able to set it globally for my app. @dimirc why is it false by default?

iroa

iroa commented on Dec 16, 2014

@iroa

Setting the attribute did not work for me, but after some debugging I found some commented code that solved it when uncommented. So if I may ask, is there a reason why it is commented out?

// if(~[KEY.ESC,KEY.TAB].indexOf(key)){
// //TODO: SEGURO?
// ctrl.close();
// }

EpiphanyMachine

EpiphanyMachine commented on Jan 29, 2015

@EpiphanyMachine

+1 Uncommenting this solves the issue for me, thanks @iroa. If there is an invalid or empty input I want it to reset to the matched (model) option.

// if(~[KEY.ESC,KEY.TAB].indexOf(key)){
// //TODO: SEGURO?
// ctrl.close();
// }
icfantv

icfantv commented on Feb 6, 2015

@icfantv

I can also confirm that adding the attribute does not work, but uncommenting the above code does.

added this to the 0.10.x milestone on Feb 18, 2015
jthibeaux

jthibeaux commented on Mar 6, 2015

@jthibeaux

+1

isamisushi

isamisushi commented on Sep 9, 2015

@isamisushi

+1

miyukiw

miyukiw commented on Sep 9, 2015

@miyukiw

+1

logstown

logstown commented on Oct 7, 2015

@logstown

+1

13 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @amcdnl@jthibeaux@icfantv@cgwyllie@ahocquet

        Issue actions

          Multiple mode: Search text is not cleared on tab out · Issue #367 · angular-ui/ui-select