aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Reaction/UI/ViewPort/Field/Mutable/Integer.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Reaction/UI/ViewPort/Field/Mutable/Integer.pm')
-rw-r--r--lib/Reaction/UI/ViewPort/Field/Mutable/Integer.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/Reaction/UI/ViewPort/Field/Mutable/Integer.pm b/lib/Reaction/UI/ViewPort/Field/Mutable/Integer.pm
index 4882f1e..958150a 100644
--- a/lib/Reaction/UI/ViewPort/Field/Mutable/Integer.pm
+++ b/lib/Reaction/UI/ViewPort/Field/Mutable/Integer.pm
@@ -3,7 +3,13 @@ package Reaction::UI::ViewPort::Field::Mutable::Integer;
use Reaction::Class;
class Integer is 'Reaction::UI::ViewPort::Field::Integer', which {
- does 'Reaction::UI::ViewPort::Field::Role::Mutable';
+ does 'Reaction::UI::ViewPort::Field::Role::Mutable::Simple';
+
+ implements adopt_value_string => as {
+ my ($self) = @_;
+ $self->value($self->value_string);
+ };
+
};
1;