Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <gerwitzm@lovullo.com>2017-02-22 09:38:33 -0500
committerMike Gerwitz <gerwitzm@lovullo.com>2017-02-22 09:54:03 -0500
commit6908e622065e2a6e78a9fbb668f2381634723e4f (patch)
tree50f1af4665c44f8042b18df6835e6a5c5ef2fb1b
parent45889f556fa039a56a2556711b44ed7f5fe63bee (diff)
downloadliza-6908e622065e2a6e78a9fbb668f2381634723e4f.tar.gz
liza-6908e622065e2a6e78a9fbb668f2381634723e4f.tar.bz2
liza-6908e622065e2a6e78a9fbb668f2381634723e4f.zip
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.
-rw-r--r--src/client/Client.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/Client.js b/src/client/Client.js
index ea8aa78..9338860 100644
--- a/src/client/Client.js
+++ b/src/client/Client.js
@@ -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 );