angular-card icon indicating copy to clipboard operation
angular-card copied to clipboard

Does not work with forms that the html atribute "name" contains DOT (.)

Open lucasmendonca opened this issue 11 years ago • 1 comments

Does not work with forms that has name attr equals "form.cardForm", for example:

<form name="form.cardForm">

Error output: "Failed to execute 'querySelectorAll' on 'Document': '[name=form.cardForm]' is not a valid selector."(card.js:862:19)

I solved this problem changing the query selector:

'[name=' + attributes.name + ']'

to

'[name="' + attributes.name + '"]' 

at card.js line 41

lucasmendonca avatar Oct 21 '15 13:10 lucasmendonca

Thanks. This is fixed in v0.3.4

gavruk avatar Oct 21 '15 18:10 gavruk