Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
init() {
const anchorEl = this.adapter_.getAnchorElement();
if (anchorEl) {
this.adapter_.setMenuAnchorElement(anchorEl);
this.adapter_.setMenuAnchorCorner(Corner.BOTTOM_START);
}
this.adapter_.setMenuWrapFocus(false);
const value = this.getValue();
if (value) {
this.setValue(value);
}
// Initially sync floating label
this.updateLabel_();
}
init() {
const anchorEl = this.adapter_.getAnchorElement();
if (anchorEl) {
this.adapter_.setMenuAnchorElement(anchorEl);
this.adapter_.setMenuAnchorCorner(Corner.BOTTOM_START);
}
this.adapter_.setMenuWrapFocus(false);
const value = this.getValue();
if (value) {
this.setValue(value);
}
// Initially sync floating label
this.updateLabel_();
}