<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>261743</bug_id>
          
          <creation_ts>2023-09-19 07:44:45 -0700</creation_ts>
          <short_desc>Clicking away from date picker does not hide it when the input element is not focused</short_desc>
          <delta_ts>2025-11-16 03:12:07 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Forms</component>
          <version>Safari 17</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=261873</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Luke Warlow">lwarlow</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>akeerthi</cc>
    
    <cc>cdumez</cc>
    
    <cc>oliverwilliams345</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1978285</commentid>
    <comment_count>0</comment_count>
    <who name="Luke Warlow">lwarlow</who>
    <bug_when>2023-09-19 07:44:45 -0700</bug_when>
    <thetext>Load https://demo.lukewarlow.dev/showPicker/

Click the button labeled &quot;datetime-local click&quot;. This will show the date picker UI.

Notice how the only way to close this UI is to click the input itself and then click off. I would expect at least the escape key to close it but also click away from it or the input probably should too.

Click the same button again so the datetime-local picker is open.

Now click the button labeled &quot;date click&quot;.

Notice how the picker doesn&apos;t move to the correct location.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1978870</commentid>
    <comment_count>1</comment_count>
    <who name="Aditya Keerthi">akeerthi</who>
    <bug_when>2023-09-20 19:33:17 -0700</bug_when>
    <thetext>Nice find! More specifically, it looks like dismissal is tied to the element being focused. Escape key to close would also be a nice enhancement, but should be a separate bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1978953</commentid>
    <comment_count>2</comment_count>
    <who name="Luke Warlow">lwarlow</who>
    <bug_when>2023-09-21 05:29:38 -0700</bug_when>
    <thetext>Have opened https://bugs.webkit.org/show_bug.cgi?id=261873 to track the escape key handling for all input pickers (noticed it wasn&apos;t just date).

And yeah that&apos;s exactly what seems to be the cause it only dismisses on unfocus of the input which is an issue if it was never focused.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1980152</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-09-26 07:45:14 -0700</bug_when>
    <thetext>&lt;rdar://problem/116054859&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>