Skip to content

Conversation

@aaronjoslyn
Copy link
Contributor

Hello,

I have some complicated pages with colour pickers on them, and whenever the user clicks anywhere on the page it triggers a digest cycle. This is a bit of a problem when combined with numeric inputs or other elements on the page which get clicked a lot :) I'm assuming this is necessary to ensure the colour picker hides though, so I was wondering if it would be possible to only trigger the cycle if the colour picker is already showing.

Thanks for your help :)

@ruhley ruhley self-assigned this Jan 26, 2016
@ruhley ruhley added the bug label Jan 26, 2016
@aaronjoslyn
Copy link
Contributor Author

Thanks for your quick reply. That seems to work great! The colour picker still disappears when clicking off it, and the digest cycle no longer triggers on every mouse click. If you're happy with the change, should I run a grunt build and get the newly generated JS committed?

@ruhley
Copy link
Owner

ruhley commented Jan 27, 2016

That would be great. Follow the release file if you haven't already found it. Make it v0.8.2.

Could you also run git rebase -i master to squish the current three commits down into one.

Thanks 👍

@ruhley ruhley added this to the v0.8.2 milestone Jan 27, 2016
@aaronjoslyn
Copy link
Contributor Author

Done. Let me know if I've missed anything!

ruhley added a commit that referenced this pull request Jan 29, 2016
Don't attempt to hide colour picker if it's not visible
@ruhley ruhley merged commit 7a824a2 into ruhley:master Jan 29, 2016
@ruhley
Copy link
Owner

ruhley commented Jan 29, 2016

Merged and released in v0.8.2. Thanks for the pull request!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants