Use setReadOnly when possible

Change-Id: I410967531229ba31c985488fc73ec7e315ecfad6
This commit is contained in:
Ed Sanders 2019-04-16 12:04:58 +01:00
parent 0eac1464c4
commit ba39eb0303
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ ve.ui.MWLatexDialog.prototype.getSetupProcess = function ( data ) {
// Populate form
// TODO: This widget is not readable when disabled
this.displaySelect.selectItemByData( display ).setDisabled( isReadOnly );
this.idInput.setValue( id ).setDisabled( isReadOnly );
this.idInput.setValue( id ).setReadOnly( isReadOnly );
// Add event handlers
this.input.on( 'change', this.onChangeHandler );