In AlpineJS I'm trying to combine 2 functions: show more/less & search within component. The problem I have is that the AlpineJS state isn't updated from my custom function but I can't get it to work...do you see what I'm doing wrong? Link to codepen: [see][1].
[1]: https://codepen.io/ChrisDeJong/pen/gOxqXzX.