This was caused by using this in a fat arrow function, so this would not equal the jQuery element. This changes that to use e.target instead.
this
e.target