Ah, now I feel daft! Thank you, Yosuke. Still learning to mentally parse 
all the nested lists :-D

On Wednesday, May 18, 2016 at 6:46:58 PM UTC+1, Yosuke Torii wrote:
>
> Hi Russell,
>
> It's because `onClick` is attached to the icon, not the button. Maybe the 
> area of icon is about 50% of its parent button ;)
>
> button [ class "btn btn-default" ]
>        [ i [ class "fa fa-trash-o"
>            , onClick address (Remove id) ] []]
>
>
> 2016年5月18日水曜日 5時00分48秒 UTC+9 Russell Dunphy:
>>
>> Hi, brand new to learning Elm, so no doubt I'm doing something stupid...
>>
>> Would anyone be kind enough to point out where I might be going wrong in 
>> this toy project? https://github.com/rsslldnphy/pairwheel
>>
>> The interesting code is in 
>> https://github.com/rsslldnphy/pairwheel/blob/master/frontend/PairWheel.elm. 
>> I'm trying to create a list of inputs with attached buttons that can save 
>> the inputs' contents or remove them from the list. Similar to the 
>> "counters" example that used to be in the elm architecture tutorial, i 
>> think, but I can't find it any more.
>>
>> The problem I'm currently running into is that the "remove" button 
>> sometimes works, but about 50% of the time it doesn't, and I can't see any 
>> pattern as to when it does and doesn't work. The "save" button doesn't seem 
>> to work at all.
>>
>> Like I say I'm sure I'm missing something obvious. Any general 
>> suggestions / recommendations are also very welcome.
>>
>> Thanks,
>>
>> Russell
>>
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to