tur-nr / polymer-redux

Polymer bindings for Redux.
https://tur-nr.github.io/polymer-redux
MIT License
440 stars 67 forks source link

ability to access elements properties from action function #132

Open developerium opened 6 years ago

developerium commented 6 years ago

Hi there thanks for great work here

I'm trying to upgrade a project from polymer 1 to 2. There is this component who is accessing elements properties from action function. looks like this was allowed in version ^0.4.0 when it was used as a behavior.

I know this might sound like a bad thing, but the component is huge, and I want to stay away from touching it as much as possible :smile:

I want to know is there a way to access element's properties, from inside action function?

I'm defining actions in a mixin, and using that when creating an element.

thanks in advance