RicoTrevisan
Possible to dynamically enable/disable `phx-update="ignore"`?
I’ve got this div – let’s call it dragging – in a Liveview . It has a Hook that runs sortableJS on the client to make the list drag-drop. For sortableJS to work properly, I need to have phx-update="ignore". However, on the same Liveview there are other forms that modify the content of the dragging div. But that whole div doesn’t update because it’s set to phx-update="ignore" . Is there a way to override this? Is there a way to make ignore dynamic?
ignore on
sortable works, updates don’t work
ignore off
sortable doesn’t work, updates work
Most Liked
sodapopcan
RicoTrevisan
Thanks for taking a stab at this
I think the reason I have phx-update="ignore" is because I’ve got multidrag on. Thanks for pointing me to todo_trek. I’ll go study and see how I can integrate those ideas.
RomanKotov
Hi, I remember an article by Fly.io about LiveView and Sortable.js. Possibly it will be helpful for you.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








