Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

feat(ngTrim): allow ng-trim to work for elements input[type=radio] #12091

Closed
wants to merge 1 commit into from

Conversation

lgalfaso
Copy link
Contributor

Allow elements of type input[type=radio] to specify ng-trim.
Do not trim attributes values by default.

BREAKING CHANGE:
Attribute values are not trimmed

Migration: when depending on attribute values to be trimmed, then manually trim them.

DISCLAIMER: I am not too fond on not trimming attribute values by default, but put the PR here to start the discussion

Allow elements of type input[type=radio] to specify ng-trim.
Do not trim attributes values by default.

BREAKING CHANGE:
Attribute values are not trimmed by default

Migration: when depending on attribute values to be trimmed, then manually trim them.

Close: angular#11859
@realityking
Copy link
Contributor

Wouldn't it be better to default to true, like it is input[type=text]?

@lgalfaso
Copy link
Contributor Author

lgalfaso commented Jun 14, 2015 via email

@realityking
Copy link
Contributor

Sorry, I misread your comment.

@Narretz
Copy link
Contributor

Narretz commented Jun 16, 2015

See also #5597

The title is a bit misleading, because it's a bigger change

@petebacondarwin petebacondarwin added this to the 1.5.x - migration-facilitation milestone Nov 1, 2015
Narretz pushed a commit to Narretz/angular.js that referenced this pull request Jun 8, 2016
Allow input[type=radio] elements to specify ng-trim.

Closes: angular#12091
Fixes: angular#11859
Narretz pushed a commit to Narretz/angular.js that referenced this pull request Jun 8, 2016
Allow input[type=radio] elements to specify ng-trim.

Closes: angular#12091
Fixes: angular#11859
Narretz pushed a commit to Narretz/angular.js that referenced this pull request Jun 9, 2016
Allow input[type=radio] elements to specify ng-trim.

Closes: angular#12091
Fixes: angular#11859
@Narretz Narretz closed this in 47724ba Jun 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants