I have this app which uses a ref to locate the element which was just clicked to change its
appearance by setting a different class
this.$refs[type + methodHandlers.getSelectedRow(type)].**$el**.classList.remove(selectedClass);
or
this.$refs[type + methodHandlers.getSelectedRow(type)].**$el**.classList.add(selectedClass);
in the latest code I get an error ,
TypeError: Cannot read properties of undefined (reading ‘classList’)
which means $el is not any good. but maybe the ref doesn’t contain the element reference the same way
I have used this code since Ionic V1 with Angular
I have multiple slides, each containing a dynamically constructed view with components
slides
slide (vfor for the number of data items in the definition table)
header
content
footer
the content component is passed the data structure design for the layout (fields, names, widths, datatypes) so it is data agnostic
so each page should behave the same… a selected row should be highlighted(and toggle selected or not) for edit, and any other row that was selected should be unselected
this also happens for long press or double click. which invoke the editor(modal) for that row.
I didn’t see mention of refs changing in latest , 6.20.3