Skip to content

Commit 1b9e81f

Browse files
committed
Set placeholder
jcgertig#39
1 parent b837dce commit 1b9e81f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/input.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ export default class Input {
1818
document.body.getAttribute('data-date-format') ||
1919
'yyyy-mm-dd'
2020

21+
this.element.setAttribute('placeholder', this.format)
22+
2123
this.localeText = this.getLocaleText()
2224

2325
Object.defineProperties(

0 commit comments

Comments
 (0)