Skip to content

Conversation

ryanjduffy
Copy link
Contributor

@ryanjduffy ryanjduffy commented Jun 4, 2018

Issue Resolved / Feature Added

Spottable components introduced odd scrolling behaviors in ScrollableNative due to built-in scroll on focus behaviors for the browser. On webOS, this can be prevented with the custom {{data-preventscrollonfocus}} attribute until the browser is updated to support the FocusOptions arg to element.focus().

Resolution

Added the data-preventscrollonfocus to spottable but included it before the spread so that it can be overridden by applications. Given the scope of the change and that there is no clear way to describe this API in a cross-platform manner, I've left it off the prop types and public documentation. I'm not entirely opposed to including it but wanted to avoid confusion since it is unlikely to be used (e.g. using the overflow: scroll on webOS).

Additional Considerations

Links

whatwg/html#2787

Comments

Enact-DCO-1.0-Signed-off-by: Ryan Duffy ([email protected])

@ryanjduffy ryanjduffy changed the base branch from develop to release/2.0.0-beta.6 June 4, 2018 15:34
@Djspaceg Djspaceg merged commit 700ccd2 into release/2.0.0-beta.6 Jun 4, 2018
@Djspaceg Djspaceg deleted the feature/ENYO-5217 branch June 4, 2018 18:43
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

Successfully merging this pull request may close these issues.

2 participants