The v4 chooser template changed the title element from <span class="title"> to <div class="chooser__title">, but the JS was still targetting the title class. Add a data-chooser-title attribute so that the JS behaviour is decoupled from the CSS-oriented class names.
The v4 chooser template changed the title element from
<span class="title">
to<div class="chooser__title">
, but the JS was still targetting thetitle
class. Add adata-chooser-title
attribute so that the JS behaviour is decoupled from the CSS-oriented class names.