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.

[FEATURE REQUEST] Possibility to change ng-trim attribute of the inputs #2064

Open
@VitaliyKim

Description

@VitaliyKim

Hi all!

Need to handle SPACE characters.
Angular trims it and does not call refresh in case SPACE entered, because ng-trim is true by default for inputs.
Is it possible to give control over this attribute somehow?

Thank you for the great tool!

Activity

changed the title [-]Possibility to change ng-trim attribute of the inputs[/-] [+][FEATURE REQUEST] Possibility to change ng-trim attribute of the inputs[/+] on Oct 14, 2017
Jefiozie

Jefiozie commented on Oct 18, 2017

@Jefiozie
Contributor

Hi @VitaliyKim,

As described in the issue template we would like to have a full description with plunker and version.
In the case we can have a look at the issue and reproduce the issue much quicker.
At the moment I don't understand what the request is so please clarify?

glutentag

glutentag commented on Aug 6, 2018

@glutentag

Hello,

I believe I have the same issue. I guess what @VitaliyKim said is it would be nice to have the option to not trim the input.

For instance, with the candidates:

"foo"
"  bar"
"    baz"

I would like to search and display the white spaces. For the candidate list and for the selected candidate, it can be done with CSS. But for the input, we currently have to customize the template, adding an option to specify the ng-trim value would be better.

Here is a plunkr showing that, with version 0.19.8.

added a commit that references this issue on Aug 29, 2018
5c86280
linked a pull request that will close this issue on Aug 29, 2018
added a commit that references this issue on Aug 29, 2018
7cd1b91
kamwoz

kamwoz commented on Nov 14, 2018

@kamwoz

needed feature, thumb up

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

      Participants

      @VitaliyKim@glutentag@kamwoz@Jefiozie

      Issue actions

        [FEATURE REQUEST] Possibility to change ng-trim attribute of the inputs · Issue #2064 · angular-ui/ui-select