1 package Reaction::UI::ViewPort::Field::Mutable::Array;
5 class Array is 'Reaction::UI::ViewPort::Field::Array', which {
6 does 'Reaction::UI::ViewPort::Field::Role::Mutable';
11 return $orig->($self) unless @_;
12 my $value = defined $_[0] ? $_[0] : [];
13 $orig->($self, (ref $value eq 'ARRAY' ? $value : [ $value ]));
14 $self->sync_to_action;