As it stands now, molecule-textarea listens for events on elements hosted in atom-autogrow-textarea. This requires molecule-textarea to have knowledge of the inner compositions of atom-autogrow-textarea.
We should change the event listeners to listen on atom-autogrow-textarea instead.
Motivation
Having knowledge of the inner workings of another module, and operating on that knowledge, causes architectural rigidity, fragility, immobility, and makes the viscosity of the design high.
Suggested Fix
This probably requires modification of atom-autogrow-textarea to allow emission of events on it’s outermost element.
Overview
As it stands now,
molecule-textarea
listens for events on elements hosted inatom-autogrow-textarea
. This requiresmolecule-textarea
to have knowledge of the inner compositions ofatom-autogrow-textarea
.We should change the event listeners to listen on
atom-autogrow-textarea
instead.Motivation
Having knowledge of the inner workings of another module, and operating on that knowledge, causes architectural rigidity, fragility, immobility, and makes the viscosity of the design high.
Suggested Fix
This probably requires modification of
atom-autogrow-textarea
to allow emission of events on it’s outermost element.