This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-01
Channels
- # announcements (2)
- # architecture (8)
- # babashka (22)
- # beginners (75)
- # calva (3)
- # clj-kondo (6)
- # cljdoc (6)
- # cljs-dev (10)
- # clojars (4)
- # clojure (94)
- # clojure-europe (12)
- # clojure-nl (4)
- # clojure-norway (3)
- # clojure-spec (6)
- # clojure-uk (4)
- # clojurescript (51)
- # community-development (13)
- # core-async (3)
- # css (1)
- # cursive (8)
- # datomic (7)
- # girouette (3)
- # graphql (3)
- # improve-getting-started (4)
- # integrant (2)
- # interop (5)
- # jobs (12)
- # kaocha (1)
- # lsp (24)
- # malli (4)
- # membrane (13)
- # nextjournal (9)
- # off-topic (6)
- # re-frame (9)
- # reitit (2)
- # remote-jobs (1)
- # reveal (4)
- # ring (4)
- # scittle (3)
- # shadow-cljs (4)
- # spacemacs (1)
- # testing (2)
- # vrac (1)
I've got a re-com datepicker component working correctly. However, when I change the component to datepicker-dropdown, the component, rather than showing a dropdown, disappears. Any idea why this behavior would happen? The model properties are the same for each, so I can't figure out why the dropdown wouldn't work.
bad position: absolute
? maybe it needs a position: relative
container somewhere?
I added a :div around the component and it showed up. That seems relatively unintuitive to me. Does anyone have an explanation?
CSS issues, as Braden described. Maybe positioning, maybe something else. Your best bet it to inspect it with DevTools when it disappears.
And if you create a minimal reproducible example, please create an issue in re-com's repo with it.
It's better to combine then in another event. Two ways to do that:
• Extract the functionality that the two existing events and the :on-click
event share into functions and use those functions in each of the three events
• Make the re-frame event that you dispatch on :on-click
in turn dispatch those two events