dwyl / mvp

📲 simplest version of the @dwyl app
https://mvp.fly.dev
GNU General Public License v2.0
84 stars 2 forks source link

Feat: Single-Click/Tap link to open link or `item.text` to Edit #444

Open nelsonic opened 10 months ago

nelsonic commented 10 months ago

This is the final requirement in #141 We need to check if the DOM node being clicked/tapped is an <a> tag and if it is, don't enter Edit mode.

Should be straightforward to intercept the click/tap event. Unless it's all in a phx-click black box ... 💭

nelsonic commented 10 months ago

The code is currently:

https://github.com/dwyl/mvp/blob/23b301d51ddd0efa71adc24a5974be7309557338/lib/app_web/live/app_live.html.heex#L428-L435

nelsonic commented 10 months ago

I've made some progress with intercepting the click event ... but still getting errors. 😢

Will return to this later. ⏳