Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #53 from cryogenian/datetime-query-fix
Browse files Browse the repository at this point in the history
query datetimepickers when input type is _not_ supported
  • Loading branch information
cryogenian authored Feb 28, 2018
2 parents 6f48c7b + 43611a2 commit 55878b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Text/Markdown/SlamDown/Halogen/Component.purs
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ updatePickers :: ∀ m v a
DSL v m Unit
updatePickers {inputTypeSupported} _ label = case _ of
SD.TextBox t → case t of
SD.DateTime _ (Compose (Just (Identity v))) | inputTypeSupported IT.DateTimeLocal
SD.DateTime _ (Compose (Just (Identity v))) | not inputTypeSupported IT.DateTimeLocal
void (H.query' cpDateTimePicker label $ setValue $ Just $ Right v)
SD.Time _ (Compose (Just (Identity v))) | inputTypeSupported IT.DateTimeLocal
SD.Time _ (Compose (Just (Identity v))) | not inputTypeSupported IT.DateTimeLocal
void (H.query' cpTimePicker label $ setValue $ Just $ Right v)
SD.Date (Compose (Just (Identity v))) | inputTypeSupported IT.DateTimeLocal
SD.Date (Compose (Just (Identity v))) | not inputTypeSupported IT.DateTimeLocal
void (H.query' cpDatePicker label $ setValue $ Just $ Right v)
_ → pure unit
_ → pure unit
Expand Down

0 comments on commit 55878b8

Please sign in to comment.