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

The following exception is raised on an attempt to register a custom question based on 'imagepicker' - Failed to execute 'querySelector' on 'Element': The provided selector is empty. #6779

Closed
JaneSjs opened this issue Aug 23, 2023 · 0 comments · Fixed by #6816
Assignees
Labels
bug user issue An issue or bug reported by users

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Aug 23, 2023

User Issue: T14346 - App crash when adding custom question in latest version
https://surveyjs.answerdesk.io/internal/ticket/details/T14346


When adding a custom 'photo' question which inherits from the 'imagepicker', the following exception is thrown:

react-dom.development.js:12056 Uncaught DOMException: Failed to execute 'querySelector' on 'Element': The provided selector is empty.
    at ./src/question_imagepicker.ts.QuestionImagePickerModel.afterRender (https://r2ywnh.csb.app/node_modules/survey-core/survey.core.js:34269:22)
    at ./src/react/reactquestion.tsx.SurveyQuestion.doAfterRender (https://r2ywnh.csb.app/node_modules/survey-react-ui/survey-react-ui.js:5703:35)
    at ./src/react/reactquestion.tsx.SurveyQuestion.componentDidMount (https://r2ywnh.csb.app/node_modules/survey-react-ui/survey-react-ui.js:5674:14)
    at commitLayoutEffectOnFiber (https://r2ywnh.csb.app/node_modules/react-dom/cjs/react-dom.development.js:23305:30)
    at commitLayoutMountEffects_complete (https://r2ywnh.csb.app/node_modules/react-dom/cjs/react-dom.development.js:24688:9)
    at commitLayoutEffects_begin (https://r2ywnh.csb.app/node_modules/react-dom/cjs/react-dom.development.js:24674:7)
    at commitLayoutEffects (https://r2ywnh.csb.app/node_modules/react-dom/cjs/react-dom.development.js:24612:3)
    at commitRootImpl (https://r2ywnh.csb.app/node_modules/react-dom/cjs/react-dom.development.js:26823:5)
    at commitRoot (https://r2ywnh.csb.app/node_modules/react-dom/cjs/react-dom.development.js:26682:5)
    at performSyncWorkOnRoot (https://r2ywnh.csb.app/node_modules/react-dom/cjs/react-dom.development.js:26117:3)
    at flushSyncCallbacks (https://r2ywnh.csb.app/node_modules/react-dom/cjs/react-dom.development.js:12042:22)
    at eval (https://r2ywnh.csb.app/node_modules/react-dom/cjs/react-dom.development.js:25651:13)
@JaneSjs JaneSjs added bug user issue An issue or bug reported by users labels Aug 23, 2023
@dk981234 dk981234 linked a pull request Aug 28, 2023 that will close this issue
dk981234 added a commit that referenced this issue Aug 29, 2023
Work for #6779: fix after render function for imagepicker
novikov82 added a commit that referenced this issue Apr 4, 2024
novikov82 added a commit that referenced this issue Apr 16, 2024
* work for the #6776

* work for the #6776

* work for the #6776

* work for the #6776

* #6776 - implemented preview for rating stars and skipped tests for disabled

* #6776 - dropdown, tagbox

* #6776 - fixed u-tests

* #6776 - comment and fix singleinput test

* #6776 - multipletext

* #6776 - fixed u-tests

* #6776 - fixed some v-tests

* work for the #6776 (checkbox group)

* work for the #6776 (checkbox group)

* #6776 - fix rating small stars

* #6776 - try to fix responsivity test

* work for the #6776 (ranking spike)

* work for the surveyjs/service#1464 (ranking)

* #6776 - try to fix angular test

* #6776 - fix rating in matrix test

* #6776 - remove DIM color

* #6776 - fixed build

* #6776 - skip matrix preview test for angular

* #6776 - revert angular test skip

* work for the #6776 (boolean, boolean:radio, boolean:checkbox)

* work for the #6776 (boolean markup)

* work for the #6776 (imagepicker)

* #6776 - matrix single-choice

* #6776 - support disabled in old themes

* work for the #6776 (file)

* work for the #6776 (test.only)

* work for the #6776 (review)

* #6676 - fixed selection in readonly and preview mode

* work for the #6776

* #6776 - colored rating

* #6776 - fixed markup tests

* #6779 - matrix alt-rows

* #6776

* #6776 - fixed v-tests

* work for the #6776

* #6776 - siganture, dynamic panel

* #6776 - signature and panel

* work for the #6776

* work for the #6776

* #6776 - update screenshot

* Update readonly-preview.ts

* work for the #6776

* #6776 - update preview etalons for dynamic panel

* #6776 - vixed matrix altrow backcolor

* work for the #6776

* #6776 - fixed radio checkbox color

* #6776 - update screenshots

* #6776 - fixed dynamic panel rendering

* work for the #6776

* work for the #6776

* #6776 - add dot to "no signature"

* #6776 - fix matrix input color for altrow

* #6776 - fix angular dynamic panels

* #6776 - fixed boolean radio rendering

* work for the #6776

* work for the #6776

* #6776 - fix markup tests

* #6776 - fixed boolean paddings

* #6776 - update boolean screenshots

* work for the #6776

* work for the #6776

* #6776 - simplify code

---------

Co-authored-by: Aleksey Novikov <[email protected]>
Co-authored-by: Aleksey Novikov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug user issue An issue or bug reported by users
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants