Skip to content

Commit

Permalink
Fix JavaScript atom for Element Clear
Browse files Browse the repository at this point in the history
Fixes issue #6557: The bot.action.clear function explicitly raises
blur event, and then the unfocus step raises blur event again,
resulting in double firing of blue event.

Signed-off-by: Alexei Barantsev <barancev@gmail.com>
  • Loading branch information
JohnChen0 authored and barancev committed Apr 28, 2019
1 parent 44d6a8b commit 127b282
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion javascript/atoms/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ bot.action.clear = function(element) {
element.value = '';
}
bot.events.fire(element, bot.events.EventType.CHANGE);
bot.events.fire(element, bot.events.EventType.BLUR);
var body = bot.getDocument().body;
if (body) {
bot.action.LegacyDevice_.focusOnElement(body);
Expand Down

0 comments on commit 127b282

Please sign in to comment.