Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EditableHeading doesn't work while EditableInput does #115

Closed
Carduelis opened this issue Apr 28, 2021 · 3 comments
Closed

EditableHeading doesn't work while EditableInput does #115

Carduelis opened this issue Apr 28, 2021 · 3 comments

Comments

@Carduelis
Copy link

// works fine
import EditableInput from "monday-ui-react-core/dist/EditableInput";
export default () => EditableInput value="Edit H2 tooltip" />
// throws an error
import EditableHeading from "monday-ui-react-core/dist/EditableHeading";
export default () => <EditableHeading value="Edit H2 tooltip" />

index.js:1 Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

When I did a console.log of those components I got:

image

So looks like EditableHeading is not a React component, while EditableInput is.

Is there any workaround? Thank you

@Carduelis
Copy link
Author

Update. Component Heading throws the same issue. Probably, it's the reason.

@orrgottlieb
Copy link
Contributor

@Carduelis, thanks for opening the issue, I'm taking a look at it now

@SergeyRoyt
Copy link
Contributor

I believe it was solved a long time ago - closing the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants