1
0
Fork 0

Client: clear validation errors on dapi fieldLoaded

Previously, the system relied on the preStagingUpdate StagingBucket
event to do this implicitly, but that is no longer kicked off when
the diff doesn't produce any bucket changes.

* src/client/Client.js (_createProgram) [dapi]: Clear validation
  failures on dapi fieldLoaded.
master
Mike Gerwitz 2017-02-22 09:38:33 -05:00
parent 45889f556f
commit 6908e62206
1 changed files with 6 additions and 0 deletions

View File

@ -1147,6 +1147,12 @@ module.exports = Class( 'Client' )
_self.getUi().getCurrentStep().getElementGroup( name )
.clearOptions( name, index );
} )
.on( 'fieldLoaded', ( name, index ) =>
{
_self._dataValidator.clearFailures( {
[name]: [ index ],
} );
} )
.on( 'error', function( e )
{
_self._handleError( e );