Skip to content

Commit 7fd4dbe

Browse files
committed
Pop placeholder so it only appears in JS output
1 parent 9569868 commit 7fd4dbe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

intl_tel_input/widgets.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def __init__(self, attrs=None, allow_dropdown=True,
3232

3333
self.js_attrs = {
3434
'size': '20',
35+
'placeholder': final_attrs.pop('placeholder', None),
3536
'data-allow-dropdown': allow_dropdown,
3637
'data-preferred-countries': json.dumps(preferred_countries),
3738
'data-default-code': default_code,

0 commit comments

Comments
 (0)