diff options
Diffstat (limited to 'lib/Reaction/UI/ViewPort/Field/Mutable/Array.pm')
-rw-r--r-- | lib/Reaction/UI/ViewPort/Field/Mutable/Array.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Reaction/UI/ViewPort/Field/Mutable/Array.pm b/lib/Reaction/UI/ViewPort/Field/Mutable/Array.pm index 6f5129c..4cc556c 100644 --- a/lib/Reaction/UI/ViewPort/Field/Mutable/Array.pm +++ b/lib/Reaction/UI/ViewPort/Field/Mutable/Array.pm @@ -14,8 +14,11 @@ around value => sub { my $value = defined $_[0] ? $_[0] : []; $orig->($self, (ref $value eq 'ARRAY' ? $value : [ $value ])); }; -__PACKAGE__->meta->make_immutable; +# value_string doesn't make sense in an Array field +override _value_string_from_value => sub { shift->_empty_string_value }; + +__PACKAGE__->meta->make_immutable; 1; |