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 ListView itemsChosen event troubles in 2023.1

Discussion in 'UI Toolkit' started by rimisaby, Jul 27, 2023.

  1. rimisaby

    rimisaby

    Joined:
    Nov 21, 2016
    Posts:
    14
    In my list views itemsChosen seems to be broken, it either
    • fires on single click, or
    • only fires after several clicks (10-15)
    If I am changing the selection, itemsChosen fires along with the selectionChanged event.

    I read in the docs under https://docs.unity3d.com/2023.1/Doc...s.BaseVerticalCollectionView-itemsChosen.html:

    Callback triggered when the user acts on a selection of one or more items, for example by double-clicking or pressing Enter.
    ...
    Note: A single-click only changes the selection. Use a double-click to submit the selection.

    Is anyone experiencing similar problems?
     
  2. uDamian

    uDamian

    Unity Technologies

    Joined:
    Dec 11, 2017
    Posts:
    1,203
    It sounds like you might be hitting a bug. I'd put together a repro and submit it as a bug.
     
  3. Leonarbitrary_Nonsense

    Leonarbitrary_Nonsense

    Joined:
    Jul 25, 2018
    Posts:
    3
    Bumping this as I have the exact same bug.
    itemsChosen
    fires on a single click (usually the first or second time) and all subsequent attempts to get the event to fire fail. I am resorting to first selecting with the mouse and then using the Enter key to trigger it.