Skip to content

Commit bb2012a

Browse files
Sadraksimbabque
authored andcommitted
- alternative bugfix
1 parent 4d5b970 commit bb2012a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/HTML/Form.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1419,14 +1419,14 @@ sub click
14191419
my($self,$form,$x,$y) = @_;
14201420
for ($x, $y) { $_ = 1 unless defined; }
14211421
local($self->{clicked}) = [$x,$y];
1422+
local($self->{value}) = "" unless defined $self->value;
14221423
return $form->make_request;
14231424
}
14241425

14251426
sub form_name_value
14261427
{
14271428
my $self = shift;
14281429
return unless $self->{clicked};
1429-
$self->value("") unless defined $self->value;
14301430
return $self->SUPER::form_name_value(@_);
14311431
}
14321432

0 commit comments

Comments
 (0)