U4-5603 - Leading space is getting trimmed in Textstring datatype

Created by Stefan Kip 07 Oct 2014, 11:09:15 Updated by Bjarne Fyrstenborg 02 Mar 2017, 09:12:55

Is duplicated by: U4-5788

Relates to: U4-9585

When I enter a string in the Textstring datatype in umbraco 7.1.7, which starts with a space, the space gets stripped when saving the document.

See the attached screenshot.

1 Attachments


Stefan Kip 11 Nov 2014, 12:56:52

This is because of the ngTrim argument which is set to true by default (https://docs.angularjs.org/api/ng/input/input%5Btext%5D)

Stefan Kip 11 Nov 2014, 13:04:17

PR: https://github.com/umbraco/Umbraco-CMS/pull/534

Priority: Normal

Type: Bug

State: Fixed

Assignee: Shannon Deminick

Difficulty: Normal


Backwards Compatible: True

Fix Submitted: Pull request

Affected versions: 7.1.7, 7.1.8

Due in version: 7.2.0


Story Points: