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

OnClick() does not trigger when implement OnClickListener for Button in HMOS #83

Open
kanaksony opened this issue Oct 6, 2021 · 1 comment

Comments

@kanaksony
Copy link
Contributor

Describe the bug
Overriden method onClick() does not trigger when implement OnClickListener for default Button component

Background Scenario:
With the Current SDK Version, whenever a developer needs a button with some functionality to execute in overridden method onClick() action, s/he need to perform the following steps mentioned under steps to reproduce:

Steps to reproduce the behavior:

  1. Define a button component either in XML or in java code
  2. Implement onClickListener and set the same in java code
  3. Add some functionality in the listener implementation

Expected behavior
Functionality added in step 3 must be executed immediately after following all above steps

Current Behavior:
Functionality added in step 3 doesn't get executed because by default clickable property of Button is not set as true

Possible Resolution:
By default clickable property of the Button must be set as true

Additional information

Developer Platform: Windows
DevEco Studio version: 2.1.0.501
SDK API version: 5
SDK version: 2.1.1.21
Device: Simulator and device both

--
Regards,
Kanak Sony

@applibengineering
Copy link
Member

Good idea we can discuss further on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants