Compiling ...elm: ./Data/Vector/Generic/Mutable.hs:703 (modify): index out of bounds (3,3)
CallStack (from HasCallStack):
error, called at ./Data/Vector/Internal/Check.hs:87:5 in vector-0.12.0.3-c437ec060b3fdd8eecce3c5fd7ada7fe6d6f6ed56dbc08f484769fe155c657df:Data.Vector.Internal.Check
SSCCE
Main.elm:
module Main exposing (..)
import Material.List.Item as ListItem
import Material.Checkbox as Checkbox
x data =
let
func item =
ListItem.listItem
(ListItem.config
|> ListItem.setSelected (if Just item.id == data.x then 1 else 2)
)
[ Checkbox.checkbox
(Checkbox.config
|> Checkbox.setState (if item.id == data.x then 1 else 2)
)
]
in
Nothing
Quick Summary:
Compiler crashes with the error:
SSCCE
Main.elm
:elm.json
:Additional Details
Duplicate of #2148. In this case the crash can be avoided by changing line 15 to
|> Checkbox.setState (if Just item.id == data.x then 1 else 2)
.