Skip to content

Commit b14b7cf

Browse files
committed
Deprecate dropdown
1 parent da22ab6 commit b14b7cf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • reflex-dom-core/src/Reflex/Dom/Widget

reflex-dom-core/src/Reflex/Dom/Widget/Input.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,7 @@ regularToDropdownViewEventType en r = case en of
429429
--TODO: We should allow the user to specify an ordering instead of relying on the ordering of the Map
430430
-- | Create a dropdown box
431431
-- The first argument gives the initial value of the dropdown; if it is not present in the map of options provided, it will be added with an empty string as its text
432+
{-# DEPRECATED "Consider using 'selectElement' instead. As-is, 'dropdown' has multiple interface and implementation issues; a revised version may appear in a forthcoming high-level widget library" #-}
432433
dropdown :: forall k t m. (DomBuilder t m, MonadFix m, MonadHold t m, PostBuild t m, Ord k) => k -> Dynamic t (Map k Text) -> DropdownConfig t k -> m (Dropdown t k)
433434
dropdown k0 options (DropdownConfig setK attrs) = do
434435
optionsWithAddedKeys <- fmap (zipDynWith Map.union options) $ foldDyn Map.union (k0 =: "") $ fmap (=: "") setK

0 commit comments

Comments
 (0)