Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
WIP update from review
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickrodee committed Jan 10, 2020
1 parent 8372503 commit f9a5ab9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mdc-floating-label/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*/

import {MDCComponent} from '@material/base/component';
import {ponyfill} from '@material/dom/index';
import {estimateScrollWidth} from '@material/dom/ponyfill';
import {MDCFloatingLabelAdapter} from './adapter';
import {MDCFloatingLabelFoundation} from './foundation';

Expand Down Expand Up @@ -60,7 +60,7 @@ export class MDCFloatingLabel extends MDCComponent<MDCFloatingLabelFoundation> {
const adapter: MDCFloatingLabelAdapter = {
addClass: (className) => this.root_.classList.add(className),
removeClass: (className) => this.root_.classList.remove(className),
getWidth: () => ponyfill.estimateScrollWidth(this.root_),
getWidth: () => estimateScrollWidth(this.root_),
registerInteractionHandler: (evtType, handler) => this.listen(evtType, handler),
deregisterInteractionHandler: (evtType, handler) => this.unlisten(evtType, handler),
};
Expand Down

0 comments on commit f9a5ab9

Please sign in to comment.