You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having a problem with kartik\editable\Editable. Here are the steps to produce.
Click on item to open a modal with an kartik\editable\Editable in it. (body of modal is rendered with renderAjax from a jquery $.post().done() )
Use editable and change data (works perfectly).
Close modal
Reopen modal by doing same click on item (no refresh of page)
kartik\editable\Editable does not work
NOTE: If I refresh page and start from step 1 get same results
NOTE2: Can do same steps with other components (i.e. datepicker) and not have same problem on a reopen of the modal.
The text was updated successfully, but these errors were encountered:
You need to check your app code whenever you are overwriting markup via AJAX as that typically break the jQuery plugins initialized on elements that are overwritten.
Ensure the Editable plugin is reinitialized after the content is rendered. Also you may want to try the new destroy method as described in the issues #87 and #100.
@kartik-v i cant get that done right... do you have an example of this please?
edit:
i found that if you execute initEditablePopover('editableId-targ')
that re initialize editable after ajax has reloaded
I'm having a problem with kartik\editable\Editable. Here are the steps to produce.
NOTE: If I refresh page and start from step 1 get same results
NOTE2: Can do same steps with other components (i.e. datepicker) and not have same problem on a reopen of the modal.
The text was updated successfully, but these errors were encountered: