Ensure always a language is selected

This commit is contained in:
Manuel Cillero 2017-08-02 09:43:53 +02:00
parent b2f68ae559
commit d8a74a18f6

View file

@ -53,7 +53,7 @@
this.getInputElement().$.selectedIndex = -1;
},
commit: function( widget ) {
widget.setData( 'lang', this.getValue() );
widget.setData( 'lang', this.getValue() || 'text' );
}
},
{