Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Remove type attribute from textarea #144

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion aldryn_forms/cms_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,8 @@ def get_form_field_widget(self, instance):

def get_form_field_widget_attrs(self, instance):
attrs = super(TextAreaField, self).get_form_field_widget_attrs(instance)

del attrs['type']

if instance.text_area_columns:
attrs['cols'] = instance.text_area_columns
Expand All @@ -523,7 +525,7 @@ class HiddenField(BaseTextField):

class PhoneField(BaseTextField):
name = _('Phone Field')
form_field_widget_input_type = 'phone'
form_field_widget_input_type = 'tel'


class NumberField(BaseTextField):
Expand Down