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
Write a framework example, such as vue/src/v-mdc-drawer/TemporaryDrawer.vue
import { MDCTemporaryDrawerFoundation, util } from '@material/drawer';
Use the component and observe that util is undefined.
What is the expected behavior?
The mdc-drawer util methods should be available for users of the @material/drawer package (from the dist/mdc.drawer.js code) without having to import util from the node_modules folder separately. Note this change is also needed when no module system is used under the global mdc namespace where there is no workaround.
What is the actual behavior?
The util methods are unavailable and need to be imported separately when writing, say, a framework integration example.
Any other information you believe would be useful?
The mdc-dialog package does this correctly by including:
import * as util from './util';
export{util};
in its index.js file, and the same should be done in mdc-drawer/index.js.
The text was updated successfully, but these errors were encountered:
pgbross
added a commit
to pgbross/material-components-web
that referenced
this issue
Mar 22, 2017
What MDC-Web Version are you using?
What browser(s) is this bug affecting?
What OS are you using?
What are the steps to reproduce the bug?
What is the expected behavior?
What is the actual behavior?
Any other information you believe would be useful?
The mdc-dialog package does this correctly by including:
in its index.js file, and the same should be done in mdc-drawer/index.js.
The text was updated successfully, but these errors were encountered: