Skip to content
Snippets Groups Projects
Commit 10f2de2a authored by dyszczo's avatar dyszczo
Browse files

fix(field): InputNumberField extends invalid class

parent 44690bd7
No related branches found
1 merge request!9Bugfix/number field namespace fix
Pipeline #5299 failed
# Changelog
## [2.2.2] - 2020-09-23
### Changed
- Fixed namespace for number field
......
......@@ -3,20 +3,19 @@
namespace WPDesk\Forms\Field;
use WPDesk\Forms\Sanitizer\TextFieldSanitizer;
class InputNumberField extends WPDesk\Forms\Field\BasicField
{
public function __construct()
{
class InputNumberField extends BasicField {
public function __construct() {
parent::__construct();
$this->set_default_value( '' );
$this->set_attribute( 'type', 'number' );
}
public function get_sanitizer()
{
public function get_sanitizer() {
return new TextFieldSanitizer();
}
public function get_template_name()
{
public function get_template_name() {
return 'input-number';
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment