Fork me on GitHub
#hoplon
<
2017-07-06
>
thedavidmeister02:07:28

@flyboarder that looks interesting, but inputs have an internal state no matter what you do

thedavidmeister02:07:33

it's just part of the browser

thedavidmeister02:07:59

so you have two (non mutually exclusive) options:

thedavidmeister02:07:26

- update your state based on a model of how an input works

thedavidmeister02:07:56

- force the input internal state to represent your state any time you expect it will get out of sync

flyboarder04:07:47

@thedavidmeister I'm not sure what you mean, does the pattern above not work for your inputs?

thedavidmeister04:07:26

@flyboarder you haven't used any inputs in the pattern?

thedavidmeister04:07:09

@flyboarder i wasn't having any issues with divs or regular attributes as you can treat them as "write only"

thedavidmeister04:07:26

the problem i'm having is that inputs are read/write by nature, on their value attribute specifically

flyboarder04:07:50

@thedavidmeister I am using the value as the child in the example but that could be an input value attribute instead, the difference is the cell graph

thedavidmeister05:07:32

@flyboarder would you mind tweaking it a little bit to use an input value?

thedavidmeister05:07:40

i just want to be 100% sure to compare apples to apples

thedavidmeister05:07:16

in my mind the issue isn't anywhere in the cell graph except the very final do-watch that triggers the do! callback

thedavidmeister05:07:39

@flyboarder also i want to take your example and drop it into the test that i already wrote and see what happens 🙂

thedavidmeister05:07:39

i don't want the tests to pass/fail just because i didn't quite understand what your solution is doing

flyboarder05:07:30

@thedavidmeister just heading to bed, I'll update the example in the morning with inputs

thedavidmeister05:07:02

@flyboarder no worries, i'm just glad to be getting some help/attention 😉

flyboarder18:07:16

again you can use the hoplon.sorting cells from brew to make this smaller, i just expanded each step

flyboarder19:07:20

@alandipert would javelin be open to spec macro improvements ?

flyboarder19:07:34

I often run into uninformative javelin errors