London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
The answer from Optimizely Support was that in an editor where there is no real focus you have to set it explicitly with onStartEdit and onStopEdit.
The updated code is:
_setValue: function (value) {
this.onStartEdit();
this._set('value', value);
this.onChange(value);
this._updateDisplayNode(value);
this.validate();
this.onStopEdit();
},
This solved the problem!
_setValue: function (value) { this._set('value', value); this.onChange(value); this._updateDisplayNode(value); this.validate(); }