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

Fix selection behavior for polymer 1.0 #75

Merged
merged 2 commits into from
Sep 3, 2015

Conversation

mdcfrancis
Copy link

Polymer 1.0 defines pages as div elements in current examples. Virtual patch of attribute boolean values fails with sneaky dom and results in an always true value. This breaks the tabbed pages example.

@@ -67,7 +67,7 @@ end

render(ps::Pages, state) =
Elem("iron-pages",
map(t -> Elem("section", render(t, state)), ps.pages.tiles),
map(t -> Elem("div", render(t, state)), ps.pages.tiles),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why was this needed?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not required, the current docs for iron-pages indicate that these should be divs. I'd assume that selection would work, but I went with consistency.

https://elements.polymer-project.org/elements/iron-pages

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, I guess that's fine.

@mdcfrancis
Copy link
Author

I believe you can use the reflect to attribute on the polymer element to lift the value. But your solution looks good.

@shashi
Copy link
Member

shashi commented Sep 2, 2015

having properties and attributes mean different things pretty messy. We will find a nice way to fix #72. But for now, could you update the PR?

@mdcfrancis
Copy link
Author

Sure will. Thanks for looking.

@NOTtheMessiah NOTtheMessiah mentioned this pull request Sep 3, 2015
shashi added a commit that referenced this pull request Sep 3, 2015
Fix selection behavior for polymer 1.0
@shashi shashi merged commit ac781dd into JuliaGizmos:master Sep 3, 2015
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.

None yet

2 participants