Skip to content

Commit

Permalink
Validator: default triggerEvent is FocusEvent.FOCUS_OUT for closer ma…
Browse files Browse the repository at this point in the history
…tch to Flex's behavior
  • Loading branch information
joshtynjala committed Aug 18, 2022
1 parent 93f8617 commit 05ab2ba
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/feathers/validators/Validator.hx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@

package feathers.validators;

import openfl.errors.Error;
import feathers.events.ValidationResultEvent;
import openfl.events.IEventDispatcher;
import openfl.errors.Error;
import openfl.events.Event;
import openfl.events.EventDispatcher;
import openfl.events.FocusEvent;
import openfl.events.IEventDispatcher;

/**
The Validator class is the base class for all Flex validators.
Expand Down Expand Up @@ -439,7 +440,7 @@ class Validator extends EventDispatcher implements IValidator {
//----------------------------------
// triggerEvent
//----------------------------------
private var _triggerEvent:String = Event.CHANGE;
private var _triggerEvent:String = FocusEvent.FOCUS_OUT;

// [Inspectable(category="General")]

Expand Down

0 comments on commit 05ab2ba

Please sign in to comment.