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

ui, events,regions selector doesn't scoped to current view #3715

Open
m-ar13f opened this issue Oct 17, 2023 · 1 comment
Open

ui, events,regions selector doesn't scoped to current view #3715

m-ar13f opened this issue Oct 17, 2023 · 1 comment
Labels

Comments

@m-ar13f
Copy link

m-ar13f commented Oct 17, 2023

When create layout using ui definition in view, it didn't scoped to the current view. It was kind useless when the selector select element outside the view, and this would introduce bug in the application.
This also affected on regions definition, events an others definition that utilize selector inside view. For now i just select the element in the current view using backbone view this.$('selector') that will solve the problem and ignore all everything marionette view offers.

@paulfalgout
Copy link
Member

I think we'd need an example of what you're talking about. as with backbone, things in marionette are related to the view's el. The ui is just looped through such that _this._ui[key] = _this.$(selector);
So if this.$('selector') is working but this.ui.foo isn't.. you have some other issue.

https://github.com/marionettejs/backbone.marionette/blob/master/lib/backbone.marionette.esm.js#L822

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants