Closed kitplummer closed 3 years ago
Can you clarify "doesn't work"? Like, hitting the "run" button doesn't do anything?
Please provide browser/OS and any additional details so I can investigate.
To debug, you could break or log on handle_event("execute-cell", %{"ref" => id}, socket)
(in page_live.ex
)
When clicking the "run" or "delete" icon, nothing happens. Nothing in browser, and nothing is logged from the server.
On macOS (Big Sur), with Chrome, Firefox and Safari.
➜ niex git:(master) ✗ elixir --version
Erlang/OTP 23 [erts-11.0.3] [source] [64-bit] [smp:6:6] [ds:6:6:10] [async-threads:1] [hipe]
Elixir 1.10.4 (compiled with Erlang/OTP 23)
I've verified other events work as expected, e.g., focus-cell
and update-content
.
After some testing, I can reproduce something similar with code in the textarea that extends the full width of the view - looks like the textarea click is conflicting with the button click. Can you confirm this is the issue you're seeing by trying with shorter code (the default IO.inspect("hello")
works fine, for example)?
Hrm, that doesn't work either.
@kitplummer I think I've found the issue - can you try the branch https://github.com/jonklein/niex/tree/fix/cell_blur . In short, there's a race condition with the button clicking and the cell blurring which removes the button - it should be fixed in that branch.
Yep, that's working.
Great - I will get that merged and close this out. Thanks for reporting it!
Fixed and merged to master.
...and now I can't get it to work at all. Feels like a cache problem. No errors in the log (server or client-side). Restarting the server doesn't do anything either.
I've enabled
debug
log hoping to maybe see something on the Phoenix.LiveView.Socket but nothing other than theCONNECTED
message.I've gotta be doing something stupid right? :D. Tried different browsers same behavior in all of them. Debugging tip? The websocket connection is made, but then nothing after that:
Any ideas?