Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. 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:
    62
    -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:
    62
    Somebody here?
     
  3. AndreaGalet

    AndreaGalet

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

    Armynator

    Joined:
    Feb 15, 2013
    Posts:
    58
    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:
    62
    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:
    62
    Please vote for it if you care
     
  7. AndreaGalet

    AndreaGalet

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