https://linen.dev logo
Join Discord
Powered by
# haxe-ui
  • b

    bright-gpu-74537

    07/02/2020, 1:18 PM
    super strange though, can you zip up your test project? ill take a peek in a bit
  • f

    fast-rain-20339

    07/02/2020, 1:19 PM
    Ah well my test project still works 😐
  • b

    bright-gpu-74537

    07/02/2020, 1:19 PM
    oh...
  • f

    fast-rain-20339

    07/02/2020, 1:20 PM
    Wow, another strange finding. If I put an inside the data for the list view (and then add more items in code as usual) it works 100% fine.
  • b

    bright-gpu-74537

    07/02/2020, 1:22 PM
    ok, thats more interesting
  • b

    bright-gpu-74537

    07/02/2020, 1:22 PM
    this is a listview?
  • f

    fast-rain-20339

    07/02/2020, 1:22 PM
    Yep
  • b

    bright-gpu-74537

    07/02/2020, 1:23 PM
    virtualized?
  • f

    fast-rain-20339

    07/02/2020, 1:23 PM
    What do you mean by that?
  • b

    bright-gpu-74537

    07/02/2020, 1:23 PM
    virtual=true
  • f

    fast-rain-20339

    07/02/2020, 1:23 PM
    I don't think so? I haven't manually set it to be
  • b

    bright-gpu-74537

    07/02/2020, 1:23 PM
    right, then it wont be
  • b

    bright-gpu-74537

    07/02/2020, 1:24 PM
    very strange, would be great if you could managed to break your test project
  • b

    bright-gpu-74537

    07/02/2020, 1:24 PM
    as im sure if i try ill get the same results (ie, that it will work)
  • f

    fast-rain-20339

    07/02/2020, 1:25 PM
    Yep, I'll keep trying for a bit. The test case really is working fine though. Must be to do with the tangle of classes that surround the UI code interacts with.
  • b

    bright-gpu-74537

    07/02/2020, 1:25 PM
    yeah, but it having an effect on the validation system is the strangest part
  • b

    bright-gpu-74537

    07/02/2020, 1:26 PM
    as you say, it sounds to be all not ui related in that callback
  • f

    fast-rain-20339

    07/02/2020, 1:26 PM
    One difference I just realised with my code vs the test case is my code has a component nested inside another, whereas the testcase is just one component
  • f

    fast-rain-20339

    07/02/2020, 1:45 PM
    oh my gosh I've got it 😄 🥳 I'm an actual idiot, sorry for wasting your time and flooding chat.
  • f

    fast-rain-20339

    07/02/2020, 1:46 PM
    Chrome showed that there were two errors. I missed the first error in the little vscode console
  • f

    fast-rain-20339

    07/02/2020, 1:47 PM
    The solution to all of lifes problems lies in two lines of code
  • b

    bright-gpu-74537

    07/02/2020, 1:47 PM
    hmmm, ok, so it dispatched a changed event when selectedItem was null?
  • b

    bright-gpu-74537

    07/02/2020, 1:48 PM
    🤔
  • f

    fast-rain-20339

    07/02/2020, 1:48 PM
    I guess so. Strange but the fix fixes it.
  • f

    fast-rain-20339

    07/02/2020, 1:48 PM
    (I think. Dear lord I hope I'm not celebrating early)
  • b

    bright-gpu-74537

    07/02/2020, 1:48 PM
    ok, still sounds like a bug, if you managed to track it down to something minimal it would be useful, if not ill try in a few hours
  • f

    fast-rain-20339

    07/02/2020, 1:49 PM
    Yep works fine with the null check. Yeah, could still be a bug. 11:40 here and I'm getting up before six, so I'm going to head off tonight. Thanks for your patience 👍
  • b

    bright-gpu-74537

    07/02/2020, 1:49 PM
    out of interest, what does
    selectedIndex
    trace as when
    selectedItem
    is null?
  • f

    fast-rain-20339

    07/02/2020, 1:49 PM
    I'll check
  • b

    bright-gpu-74537

    07/02/2020, 1:49 PM
    ok, no worries
1...303304305...1687Latest