- π¨π¦Canada joseph.olstad
I'm still seeing this regression in D10.0.10
π Regression fix for (if feasible) uses of the jQuery trim function to use vanillaJS Fixed - π¨π¦Canada joseph.olstad
ok I have the steps to reproduce the regression introduced by the commit made in comment #11, it can be reproduced with core alone.
in your content type, allow the "Provide a menu link" option provided by the core menu_ui module.
When editing content that does not have the checkbox checked for "Provide a menu link" the callback is not a valid callback, it is "Not in menu"
The "Not in menu" functionality comes from the core menu_ui module.
The regression is in core, only need core to reproduce, it's not even caused by contrib.
the $.trim() function in jQuery does more than the ES6 trim() function and it's encapsulated by jQuery.
Basically the es6 trim function is not as good as the jQuery $.trim() function.
I've spent a significant amount of time investigating ways to get this working with es6 without jQuery however the approach by jQuery is radically different because the trim function takes a parameter of item we want to trim.
Not only is the approach more sophisticated with jQuery (different) it also trims more than just whitespace, it also trims tab and newline characters whereas the es6 trim function only handles whitespace.
any chained functions I tried just didn't seem to cut the mustard. The encapsulated approach by jQuery is more advanced and I haven't had a chance to figure it out.
- π¨π¦Canada joseph.olstad