@descope/web-components-ui 1.0.351 → 1.0.353

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.esm.js CHANGED
@@ -7068,10 +7068,18 @@ class NewPasswordInternal extends BaseInputClass$4 {
7068
7068
  renderInputs() {
7069
7069
  const template = `
7070
7070
  <div>
7071
- <descope-password autocomplete="new-password" data-id="password"></descope-password>
7071
+ <descope-password
7072
+ autocomplete="new-password"
7073
+ manual-visibility-toggle="true"
7074
+ data-id="password"
7075
+ ></descope-password>
7072
7076
  <descope-policy-validation></descope-policy-validation>
7073
7077
  </div>
7074
- <descope-password autocomplete="new-password" data-id="confirm"></descope-password>
7078
+ <descope-password
7079
+ autocomplete="new-password"
7080
+ manual-visibility-toggle="true"
7081
+ data-id="confirm"
7082
+ ></descope-password>
7075
7083
  `;
7076
7084
 
7077
7085
  this.wrapperEle.innerHTML = template;
@@ -8776,6 +8784,14 @@ const GridMixin = (superclass) =>
8776
8784
  // disable the grid sort
8777
8785
  this.baseElement._mapSorters = () => {};
8778
8786
 
8787
+ // there is an issue in vaadin that on some cases when trying to render the details panel, the row is null and this fn throwing
8788
+ // so we override it to prevent the error
8789
+ const origUpdateDetailsCellHeight = this.baseElement._updateDetailsCellHeight;
8790
+ this.baseElement._updateDetailsCellHeight = (row) => {
8791
+ if (!row) return;
8792
+ origUpdateDetailsCellHeight.call(this.baseElement, row);
8793
+ };
8794
+
8779
8795
  this.baseElement.rowDetailsRenderer = this.#rowDetailsRenderer.bind(this);
8780
8796
  }
8781
8797