Question T9876
Visible to All Users

Custom button added to question's title disappear when resize the browser window

created 3 years ago

Hi,

The custom button added to title of the question disappear when resize the browser window, this happens if the title value length is longer enough to text wrap happen when resize.

button added via following code snippet.

TypeScript
this.survey.onGetQuestionTitleActions.add((x: any, opt: any) => { // Exclude feedback questions from registering the title actions. if(opt.question.name.indexOf("_feedback") > -1) { return; } // Disable questions from editing, except the feedback fields. const question = this.survey.getQuestionByName(opt.question.name); question.readOnly = true; opt.titleActions = [{ title: 'Provide Feedback', innerCss: 'p-button', action: () => { this.provideFeedback(opt.question); this.surveyInfoDialogService.showDialog.emit(true); } }]; });

For better explanation i have attached the recorded video.

Regards,
Roshan G. Bolonna

Answers approved by surveyjs Support

created 3 years ago

Hello,

I've fixed the issue via the pull request. Fix will be available in the nearest minor update.

Olga,
SurveyJS Team

    Comments (2)

      Hello,

      Unfortunately, I have problems with visual tests, after fixing the bug, so this fix will be included in the release 1.9.39.

      Olga,
      SurveyJS Team

      RB RB
      Roshan Bolonna 3 years ago

        Hi Olga,

        Thanks, looking forward to test on next release :)