You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the extension cookie, an error “this.options is undefined” is reported for 'customStorage' when building the table and when calling “this._storage.getItem”.
I see a variable "that" in 1.21.4 and this code and the counterpart does not seem to be in 1.24.0. I'm wondering if this is just a simple fix. I'm not sure how to handle a change here that can be reviewed and such outside of what I see and put here in a comment.
I see this in 1.21.4
key: "configureStorage",
value: function configureStorage() {
var that = this;
this._storage = {};
switch (this.options.cookieStorage) {
case 'cookieStorage':
this._storage.setItem = function (cookieName, cookieValue) {
document.cookie = [cookieName, '=', encodeURIComponent(cookieValue), "; expires=".concat(UtilsCookie.calculateExpiration(that.options.cookieExpire)), that.options.cookiePath ? "; path=".concat(that.options.cookiePath) : '', that.options.cookieDomain ? "; domain=".concat(that.options.cookieDomain) : '', that.options.cookieSecure ? '; secure' : '', ";SameSite=".concat(that.options.cookieSameSite)].join('');
};
I see this in 1.24.0
key: "configureStorage",
value: function configureStorage() {
this._storage = {};
switch (this.options.cookieStorage) {
case 'cookieStorage':
this._storage.setItem = function (cookieName, cookieValue) {
document.cookie = [cookieName, '=', encodeURIComponent(cookieValue), "; expires=".concat(UtilsCookie.calculateExpiration(this.options.cookieExpire)), this.options.cookiePath ? "; path=".concat(this.options.cookiePath) : '', this.options.cookieDomain ? "; domain=".concat(this.options.cookieDomain) : '', this.options.cookieSecure ? '; secure' : '', ";SameSite=".concat(this.options.cookieSameSite)].join('');
};
Bootstraptable version(s) affected
1.24.0
Description
When using the extension cookie, an error “this.options is undefined” is reported for 'customStorage' when building the table and when calling “this._storage.getItem”.
Example(s)
this._storage.getItem = function (cookieName) {
return Utils.calculateObjectValue(this.options, this.options.cookieCustomStorageGet, [cookieName], '')
}
Possible Solutions
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: