Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Bug TextMeshPro Input field webgl Error on touch

Discussion in 'UGUI & TextMesh Pro' started by AndreaGalet, May 29, 2023.

  1. AndreaGalet

    AndreaGalet

    Joined:
    May 21, 2020
    Posts:
    103
    -Unity 2022
    -TextMeshPro 3.2.0 pre 4
    -Google Chrome 114.0.5735.90

    Input Field with different "Content Type", for example only numbers or email invoke this exception on browser console and open pop up error when field is clicked with touch, possibly because is trying to open mobile keyboard?:

    Invoking error handler due to
    InvalidStateError: Failed to execute 'setSelectionRange' on 'HTMLInputElement': The input element's type ('number') does not support selection.
    Error: Failed to execute 'setSelectionRange' on 'HTMLInputElement': The input element's type ('number') does not support selection.
    at _JS_MobileKeyboard_SetTextSelection (...i hided this part for privacy
    /Build/farming_build.framework.js:10:234148
    at Object.touchEventHandlerFunc [as handlerFunc] (...i hided this part for privacy)
    at HTMLCanvasElement.jsEventHandler (...i hided this part for privacy)
     
    Last edited: Jun 5, 2023
  2. AndreaGalet

    AndreaGalet

    Joined:
    May 21, 2020
    Posts:
    103
    Somebody here?
     
  3. AndreaGalet

    AndreaGalet

    Joined:
    May 21, 2020
    Posts:
    103
  4. Armynator

    Armynator

    Joined:
    Feb 15, 2013
    Posts:
    68
    Looks like it's still not fixed in 2023.2 and Firefox 115.
    @AndreaGalet any news on the bug report? Maybe a public tracker link?

    Setting the input field from email to standard still works as workaround for me.
     
  5. AndreaGalet

    AndreaGalet

    Joined:
    May 21, 2020
    Posts:
    103
    Sure, here the public tracker code and link:
    -Link: https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-42824
    -Code: UUM-42824 in case link is not availble for whatever reason
     
    Armynator likes this.
  6. AndreaGalet

    AndreaGalet

    Joined:
    May 21, 2020
    Posts:
    103
    Please vote for it if you care
     
  7. AndreaGalet

    AndreaGalet

    Joined:
    May 21, 2020
    Posts:
    103
    Yes standard mode works