Skip to content

IOS TextView hint din't display numeric #3584

Closed

Description

@michaelchan1992

I'm trying to set hint for TextView for numeric hint = "0.01" but it doesn't display anything. I tried to use alphabet hint = "abc" but it seem working fine.

xml:
< TextView hint="0.00" />

Please, provide the details below:

Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo?

Tell us about the problem

Please, ensure your title is less than 63 characters long and starts with a capital
letter.

Which platform(s) does your issue occur on?

iOS

Please provide the following version numbers that your issue occurs with:

  • CLI: 2.5.0
  • Cross-platform modules: 2.4.4
  • Runtime(s): tns-android 2.4.1, tns-ios 2.4.0
  • Plugin(s): "tns-core-modules": "^2.4.4"

Please tell us how to recreate the issue in as much detail as possible.

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

Activity

  1. NickIliev commented on Feb 6, 2017

    @NickIliev
    Contributor

    Reproduced under iOS with tns-core-modules 2.5.0.

    The issue appeared only when the digit (set as textView's hint) is 0 or 0.00;
    Works as expected with any other digit and string.

    Possible reason for this issue here

    @michaelchan1992 as a temporary workaround open your node_modules/tns-core-modules/ui/text-view/text-view.ios.js and modify this line to this

            if (hint.toString() && !text) {
    

    Notice that this would work as far as you do not delete your node_modules folder. If you have to rebuild your project entirely (with reset node_modules) than you will have to apply the solution again.

  2. michaelchan1992 commented on Feb 7, 2017

    @michaelchan1992
    Author

    Thank for the solution, it work as expected.

  3. added this to the milestone on Feb 14, 2017
  4. removed their assignment
    on Apr 26, 2017
  5. SvetoslavTsenov commented on Apr 26, 2017

    @SvetoslavTsenov
    Contributor

    Tested with 3.0.0

  6. lock commented on Aug 28, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  7. locked and limited conversation to collaborators on Aug 28, 2019
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions