I have tried below implementation.
$( window ).load(function() {
$('#EditableToolbar').bind("DOMSubtreeModified",function(){
$( "#EditableToolbar .cq-editable-action" ).click(function() {
var data_path;
var data_action = $(this).attr('data-action');
if(data_action == 'MSM_REENABLE_INHERITANCE'){
data_path = $(this).attr('data-path');
$(document).on("click", ".coral-Button--primary", function (e) {
$(".cq-Overlay--container").find(".cq-Overlay--component[data-path='" + data_path + "']").attr('data-info', '222');
});
}
});
});
});
But newly added attribute is getting removed.