New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 791405 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Jan 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug-Regression



Sign in to add a comment

html component click events are not working

Reported by apatlol...@gmail.com, Dec 4 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36

Steps to reproduce the problem:
1. Have a html componets( Submit button / anchor tag / checkbox)
2. in javascript have the following code

_setFocusLossListener: function () {
	this._outsideClickSignal = a11yclick(document.body, function (e) {
		if (!this.domNode.contains(e.target)) {
			on.emit(this.domNode, 'focusloss', {});
		}
	}.bind(this));
},

_removeFocusLossListener: function () {
	if (this._outsideClickSignal) {
		this._outsideClickSignal.remove();
		this._outsideClickSignal = null;
	}
}

3. when the page loads all the events work like
 a. for submit button, the form submit action gets invoked
 b. for anchor tag, the href gets invoked
 c. for checkbox, the click to select the checkbox works

4. Now try to invoke the above code.
in my case, I have a widget pop-up( example a calender to select dates), and my intention is when a click outside the popup I have close the pop-up. 
So when My pop-up is openend the call the '_setFocusLossListener' method to get control over outside clicks. and when I close the pop-up I call
 "_removeFocusLossListener" so that my click events are removed.

5. Now when I try to click the submit button / anchor href / checkbox, nothing works. But at the same time if I have onClick methods for those components, they work.
6. This has been tested in IE and Firebox and it works. In Chrome, version-54 works and its been broken from version-56.

What is the expected behavior?
when I try to click the submit button / anchor href / checkbox, the default component events for submit/href/checkbox selection should work.

What went wrong?
when I try to click the submit button / anchor href / checkbox, Nothing happens.
But at the same time if I have onClick events on the component, they work.
This has been tested in IE and Firebox and it works. In Chrome, version-54 works and its been broken from version-56.

Did this work before? Yes version 54

Chrome version: 62.0.3202.94  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version:
 
Labels: Needs-Bisect
Cc: vamshi.k...@techmahindra.com
Labels: Triaged-ET Needs-Triage-M62 Needs-Feedback
"Thanks for filing the issue.

@Reporter: Could you please share a sample test file/URL which helps us to triage the issue in a better way from TE-End."
Status: WontFix (was: Unconfirmed)
Closing issue due to lack of feedback requested but not provided. If the issue still exists please open a new issue with the details requested.

Sign in to add a comment