← Back to team overview

touch-packages team mailing list archive

[Bug 1226329] Re: [TextField] The placeholderText does not apper when inputMask is setted

 

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

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in
Ubuntu.
https://bugs.launchpad.net/bugs/1226329

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

Status in ubuntu-ui-toolkit package in Ubuntu:
  Fix Released

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" : ""
  }

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1226329/+subscriptions