I would like to create a simple extension where I override what happens when a user clicks on the email field.
How to structure the extension to achieve this? It seems nothing is working even if I put the changes into:
\files\client\modules\my-extension\src\views\fields\email.js
And changed the data action to something else:
'click [data-action="mailTo"]': function (e) {
//something else
},
Any help would be appreciated.
How to structure the extension to achieve this? It seems nothing is working even if I put the changes into:
\files\client\modules\my-extension\src\views\fields\email.js
And changed the data action to something else:
'click [data-action="mailTo"]': function (e) {
//something else
},
Any help would be appreciated.
Comment