Skip to content

Instantly share code, notes, and snippets.

@melvinstanly
Created December 3, 2018 05:44
Show Gist options
  • Save melvinstanly/195bbdd82cfd845619cbf00ec5735504 to your computer and use it in GitHub Desktop.
Save melvinstanly/195bbdd82cfd845619cbf00ec5735504 to your computer and use it in GitHub Desktop.
Color picker not Displayed / mispositioned inside a scrollable div
Color picker won't appear when clicked, if it is inside a scrollable div.
Also when colorpicker is opened and scrolled, the colorpicker also get scrolled.
The solution to fix this is to add `position:relative` to the parent div in which input field, span(colorpicker preview) and
div(iris-picker iris-border).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment