-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Add "fools protection" in BootstrapWidgetTrait #54
base: master
Are you sure you want to change the base?
Conversation
WinterSilence
commented
Oct 13, 2022
•
edited
Loading
edited
Q | A |
---|---|
Is bugfix? | ✔️/❌ |
New feature? | ❌ |
Breaks BC? | ❌ |
Fixed issues | #49 |
Doesn't this make debugging more complicated? If the element is not present, you don't see an exception in browser console any more with this change. |
Ok. So kartik's gridview uses the widget without rendering the button? Maybe there is a better solution which does not break debug option 🤔. |
@simialbi his widget using template like as |
@simialbi my solution is use |
This is a breaking change from v2.0.3. When using earlier with jQuery in yii2-bootstrap5 v2.0.3 - no debug/error message was thrown even if the selector
I assume the same behavior should be implemented for use without jQuery - else its a BC Breaking change from 2.0.3 to 2.0.4.
IMO... individual developers should choose to validate if needed for their use case, whether the element exists or not before initializing the plugin or bootstrap widget and the widget should be allowed to render like earlier without any errors - or this could be a configuration option for the widget/plugin. |
You are free to suggest any improvement to any extension code (if you want to) as its a OPEN SOURCE community where you can raise enhancement suggestions - just like you have raised a PR here. Have given few of my feedback for this PR as well. Thanks. |
@WinterSilence Did you misspell Also, |