-
-
Notifications
You must be signed in to change notification settings - Fork 301
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
Wrong ID in rendered Javascript prevents EditableColumn from working #149
Comments
Interestingly, the hashVar contains the correct value. var editable_2cc45c8b = {"containerId":"bEnabled-0-cont","defaultValue":"<em>(not set)<\/em>","placement":"right","target":".kv-editable-link","displayValueConfig":["Off","On"],"showAjaxErrors":true}; With yii2-grid 1.6.0, the Even when the correct element is supplied to the |
The editable plugin is designed to be initialized on the editable input (inside the popover) and not on the container. So this is expected behavior. In fact there were some issues with the older implementation and hence there have been enhancements. I hope you have upgraded to the latest release of yii2-editable and yii2-grid via composer. Related issue resolved recently. |
You need to ensure you clean up your web assets and browser cache and restart/retry to remove any stale javascript/assets from old version. |
I am working on updating this release. Please hold on. |
I've got an EditableColumn defined in a Grid in the following way:
However, the page is rendered with the following JS (only the problematic line is included):
jQuery('#bEnabled-0').editable(editable_2cc45c8b)
The actual ID for the enclosing element is not
bEnabled-0
, butbEnabled-0-cont
.The text was updated successfully, but these errors were encountered: