fix(tracker): fix time inputs capturing

This commit is contained in:
nick-delirium 2023-05-16 09:55:00 +02:00 committed by rjshrjndrn
parent e0f7522752
commit 8016ad0565
3 changed files with 16 additions and 2 deletions

View file

@ -1,3 +1,7 @@
# 7.0.1
- fix time inputs capturing
# 7.0.0
- **[breaking]** added gzip compression to large messages

View file

@ -1,7 +1,7 @@
{
"name": "@openreplay/tracker",
"description": "The OpenReplay tracker main package",
"version": "7.0.0",
"version": "7.0.1",
"keywords": [
"logging",
"replay"

View file

@ -3,7 +3,17 @@ import { normSpaces, IN_BROWSER, getLabelAttribute, now } from '../utils.js'
import { hasTag } from '../app/guards.js'
import { InputChange, SetInputValue, SetInputChecked } from '../app/messages.gen.js'
const INPUT_TYPES = ['text', 'password', 'email', 'search', 'number', 'range', 'date', 'tel']
const INPUT_TYPES = [
'text',
'password',
'email',
'search',
'number',
'range',
'date',
'tel',
'time',
]
// TODO: take into consideration "contenteditable" attribute
type TextFieldElement = HTMLInputElement | HTMLTextAreaElement