seems it still react to user's input even set enabled to false...
I want to
disable swipeable
depend on some state changes,
any idea how can I do it ? 🤔 @Stylianos Gakis
s
Stylianos Gakis
05/31/2022, 9:14 AM
No need to ping me if I am already in the thread.
I have never used the
swipeable
modifier directly myself so no I don’t know anything else than that. The docs seem to be explaining that setting that as disabled should make it so that the user can not interact with it. If this is not the case the options are:
1. I am understanding something wrong
2. You are not setting it as false or are setting false to the wrong swipeable or there is another swipeable “above” the one you’re disabling so you can still scroll despite it being off, or some other simple mistake you’re missing.
3. There’s a bug in the swipeable code.
I don’t think I can help more than that unfortunately
j
jossiwolf
05/31/2022, 3:00 PM
To help we'd need to know more. Please post a minimal repro.