Unable to save widget contents

Reason is pretty simple and easy to overlook… It has nothing to do with placing both widgets in the same file or anything like this…

Let’s look at your code that is responsible for printing the widgets’ form:

public function form( $instance ) {
    echo '<p><strong>Sometext here</p>';
}

Do you see it now? There are unclosed tags in there…

You open <p> tag, then open <strong> tag and never close it. This causes incorrect JS behavior – so you can’t drag&drop second widget…