[TextField] The placeholderText does not apper when inputMask is setted

Bug #1226329 reported by Renato Araujo Oliveira Filho
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
Fix Released
Medium
Cris Dywan

Bug Description

The inputMask makes the placehorlderText invisible even when the text property is empty.

Example:
TextInputDetail {
        height: units.gu(4)

        // this will never appears
        placeholderText: i18n.tr("Date of birth")
        inputMask: "09/09/9999"
}

WORKAROUND:
TextInputDetail {
        height: units.gu(4)

        // this will never appears
        placeholderText: i18n.tr("Date of birth")
        inputMask: activeFocus ? "09/09/9999" : ""
}

Tags: text-input
Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

The WORKAROUND does not work because setting and removing the inputMask cause the field to lost the text value and the field become empty.

Revision history for this message
Zsombor Egri (zsombi) wrote :

Is TextInputDetail derived from TextField? If yes, what else has been added to it?

tags: added: text-input
Changed in ubuntu-ui-toolkit:
assignee: nobody → Zsombor Egri (zsombi)
Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
status: New → Triaged
importance: Undecided → Medium
Zoltan Balogh (bzoltan)
Changed in ubuntu-ui-toolkit (Ubuntu):
assignee: nobody → Zsombor Egri (zsombi)
importance: Undecided → Medium
status: New → Triaged
Zoltan Balogh (bzoltan)
no longer affects: ubuntu-ui-toolkit
Revision history for this message
Zsombor Egri (zsombi) wrote :

Christian, not sure whether is this still valid.

Changed in ubuntu-ui-toolkit (Ubuntu):
assignee: Zsombor Egri (zsombi) → Christian Dywan (kalikiana)
Revision history for this message
Bartosz Kosiorek (gang65) wrote :

I checked it and it seems that TextField with placeholderText is working correctly when inputMask is set.

Changed in ubuntu-ui-toolkit (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.