Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getDefaultFoundation() {
return new MDCTextFieldIconFoundation({
getAttr: (attr: string) =>
this.root.getProp(attr as any) as string | null,
setAttr: (attr: string, value: string) =>
this.root.setProp(attr as any, value),
removeAttr: (attr: string) => this.root.removeProp(attr as any),
setContent: (content: string) => {
// @ts-ignore
this.root.setProp('icon', content);
},
registerInteractionHandler: (
evtType: K,
handler: SpecificEventListener
): void => this.root.addEventListener(evtType, handler),
deregisterInteractionHandler: (
evtType: K,
handler: SpecificEventListener