mvp icon indicating copy to clipboard operation
mvp copied to clipboard

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

Open nelsonic opened this issue 2 years ago • 2 comments

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 avatar Nov 20 '23 09:11 nelsonic

The code is currently:

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

nelsonic avatar Nov 20 '23 10:11 nelsonic

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

Will return to this later. ⏳

nelsonic avatar Nov 20 '23 11:11 nelsonic