forked from CIT/Vmeda.Online
		
	MOBILE-3096 qbehaviour: No behaviour buttons if prevent submit
This commit is contained in:
		
							parent
							
								
									f7ea003b41
								
							
						
					
					
						commit
						a569bb24b8
					
				| @ -67,6 +67,11 @@ export class CoreQuestionHelperProvider { | |||||||
|      * @param {string} [selector] Selector to search the buttons. By default, '.im-controls input[type="submit"]'. |      * @param {string} [selector] Selector to search the buttons. By default, '.im-controls input[type="submit"]'. | ||||||
|      */ |      */ | ||||||
|     extractQbehaviourButtons(question: any, selector?: string): void { |     extractQbehaviourButtons(question: any, selector?: string): void { | ||||||
|  |         if (this.questionDelegate.getPreventSubmitMessage(question)) { | ||||||
|  |             // The question is not fully supported, don't extract the buttons.
 | ||||||
|  |             return; | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|         selector = selector || '.im-controls input[type="submit"]'; |         selector = selector || '.im-controls input[type="submit"]'; | ||||||
| 
 | 
 | ||||||
|         const element = this.domUtils.convertToElement(question.html); |         const element = this.domUtils.convertToElement(question.html); | ||||||
| @ -76,8 +81,6 @@ export class CoreQuestionHelperProvider { | |||||||
|         buttons.forEach((button) => { |         buttons.forEach((button) => { | ||||||
|             this.addBehaviourButton(question, button); |             this.addBehaviourButton(question, button); | ||||||
|         }); |         }); | ||||||
| 
 |  | ||||||
|         question.html = element.innerHTML; |  | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     /** |     /** | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user