Skip to content

Commit af2e9e7

Browse files
anna-dinglerjwoo-msftalmedina-msrahulamlekarRahulAmlekar
authored
[UWP Renderer] Update min/max handling for inputs (#8236)
* Switch to gotFocus (#8148) (#8150) * Update custom.props * [UWP] Update custom.props for object model release (#8225) * Update custom.props for object model release * Updated Xcode version (#8222) * removed build step as they are redundant (#8201) * removed build step as they are redundant * added pod installation step Co-authored-by: Joseph Woo <Joseph.Woo@microsoft.com> * [UWP Renderer] Add a null check to inline action rendering (#8228) * Update custom.props for object model release * Updated Xcode version (#8222) * removed build step as they are redundant (#8201) * removed build step as they are redundant * added pod installation step * Add a null check for inline Actions Co-authored-by: Joseph Woo <Joseph.Woo@microsoft.com> * Update min/max handling for inputs * [UWP][Infra] Update nuget files for release (#6576) (#8240) * [UWP][Infra] Update nuget files for release (#6576) * Add new nuspec files * Fix nuspec * Update build copy script * Add dependency to renderer * 1.5 website schema explorer updates (#6550) * Updating schema explorer properties * adding tableCell to toc and attempting whitespace fix * indentation fix indentation fix * Removing filtered prop Removing filtered prop - it's auto generated in our build Co-authored-by: RahulAmlekar <raamleka@microsoft.com> * Custom.props to 1.0.0 for Object model build * Update dependency version Co-authored-by: Rahul Amlekar <rahul.amlekar@mail.mcgill.ca> Co-authored-by: RahulAmlekar <raamleka@microsoft.com> Co-authored-by: Rebecca Muraira <rebecch@microsoft.com> * Remove blank lines Co-authored-by: almedina-ms <35784165+almedina-ms@users.noreply.github.com> Co-authored-by: Rahul Amlekar <rahul.amlekar@mail.mcgill.ca> Co-authored-by: RahulAmlekar <raamleka@microsoft.com> Co-authored-by: Rebecca Muraira <rebecch@microsoft.com> --------- Co-authored-by: Joseph Woo <Joseph.Woo@microsoft.com> Co-authored-by: almedina-ms <35784165+almedina-ms@users.noreply.github.com> Co-authored-by: Rahul Amlekar <rahul.amlekar@mail.mcgill.ca> Co-authored-by: RahulAmlekar <raamleka@microsoft.com> Co-authored-by: Rebecca Muraira <rebecch@microsoft.com> Co-authored-by: Vsevolod <sevkorobot@gmail.com>
1 parent 6c7d5eb commit af2e9e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/uwp/SharedRenderer/lib/InputValue.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,13 +184,13 @@ namespace winrt::AdaptiveCards::Rendering::Xaml_Rendering
184184
if (max)
185185
{
186186
double maxDouble = max.Value();
187-
isValid = (currentDouble <= maxDouble);
187+
isValid &= (currentDouble <= maxDouble);
188188
}
189189

190190
if (min)
191191
{
192192
double minDouble = min.Value();
193-
isValid = (currentDouble >= minDouble);
193+
isValid &= (currentDouble >= minDouble);
194194
}
195195
}
196196
catch (...)
@@ -278,7 +278,7 @@ namespace winrt::AdaptiveCards::Rendering::Xaml_Rendering
278278
unsigned int minHours, minMinutes;
279279
if (::AdaptiveCards::DateTimePreparser::TryParseSimpleTime(minTimeStdString, minHours, minMinutes))
280280
{
281-
winrt::TimeSpan minTime{(int64_t)(minHours * 60 + minMinutes) * 1000000 * 60};
281+
winrt::TimeSpan minTime{(int64_t)(minHours * 60 + minMinutes) * 10000000 * 60};
282282
isMaxMinValid &= currentTime.count() >= minTime.count();
283283
}
284284
}

0 commit comments

Comments
 (0)