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

Register a custom React component - Missing imports #7105

Closed
JaneSjs opened this issue Oct 9, 2023 · 1 comment
Closed

Register a custom React component - Missing imports #7105

JaneSjs opened this issue Oct 9, 2023 · 1 comment

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Oct 9, 2023

return createElement(SurveyQuestionColorPicker, props);

Please add the { createElement } import to the following code snippet:

import React, { createElement } from "react";

ReactQuestionFactory.Instance.registerQuestion(CUSTOM_TYPE, (props) => {
  return createElement(FormFieldButton, props);
});
@RomanTsukanov
Copy link
Contributor

Fixed by 885b925

@OlgaLarina OlgaLarina added this to the v1.9.112 milestone Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants