Skip to content

Cannot use number values in EditableText's hint field #790

Closed

Description

@lscown

<TextField hint="1" />
<TextField hint="0.0" />

does not work, however it does work with strings that don't contain numbers.

And throws this error for iOS:

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFNumber length]: unrecognized selector sent to instance 0xb000000000000012'
*** First throw call stack:
(
    0   CoreFoundation                      0x0000000107207f65 __exceptionPreprocess + 165
    1   libobjc.A.dylib                     0x0000000106c81deb objc_exception_throw + 48
    2   CoreFoundation                      0x000000010721058d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
    3   CoreFoundation                      0x000000010715df7a ___forwarding___ + 970
    4   CoreFoundation                      0x000000010715db28 _CF_forwarding_prep_0 + 120
    5   UIKit                               0x0000000105dc87a8 -[UITextField setPlaceholder:] + 45
    6   mobile                              0x000000010458f33c ffi_call_unix64 + 76
    7   ???                                 0x00007fff5bc62650 0x0 + 140734733100624
)
libc++abi.dylib: terminating with uncaught exception of type NSException

Activity

  1. self-assigned this
    on Sep 23, 2015
  2. added this to the 1.4.0 milestone on Sep 23, 2015
  3. lock commented on Aug 30, 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.

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

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions