mvp
mvp copied to clipboard
Feat: Single-Click/Tap link to open link or `item.text` to Edit
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 ... 💭
The code is currently:
https://github.com/dwyl/mvp/blob/23b301d51ddd0efa71adc24a5974be7309557338/lib/app_web/live/app_live.html.heex#L428-L435
I've made some progress with intercepting the click event ... but still getting errors. 😢
Will return to this later. ⏳