Skip to content

Commit

Permalink
fix #2827 calendar pick with text source field
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik committed Oct 5, 2023
1 parent ed03bea commit 0abc397
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app/qml/editor/inputdatetime.qml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,17 @@ AbstractEditor {

onSelected: function( selectedDate ) {
if ( selectedDate )
root.editorValueChanged(selectedDate, false)
{
if ( root.parentField.isDateOrTime )
{
root.editorValueChanged(selectedDate, false)
}
else
{
let dateStr = selectedDate.toLocaleString(Qt.locale(), config['field_format'])
root.editorValueChanged(dateStr, false)
}
}

dateTimeDrawer.close()
}
Expand Down

1 comment on commit 0abc397

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS - version 23.10.463411 just submitted!

Please sign in to comment.