title: iPad when dismissing keyboard right nav button wont trigger action
body: <p>I have a a view controller to create an item within my app, once the required text field in the view has been completed you can press the save icon in right hand navigation button.</p>
  <p>The <code>UIBarButtonItem</code> is created as a property of the view controller thus:</p>
  <pre class="lang-swift prettyprint-override"><code>let add = UIBarButtonItem(title: &quot;Save&quot;, style: .done, target: self, action: #selector(save))
  </code></pre>
  <p>The action simply saves the item to Core Date and pops the view from the navigation controller.</p>
  <p>The <code>add</code> button is programmatically added to the <code>UINavigationItem</code> and setup in <code>viewDidLoad</code>.</p>
  <p>One of the fields is a required text field so I have the following code to determine if its possible to save the item:</p>
  <pre class="lang-swift prettyprint-override"><code>    @IBAction func editingChanged(_ sender: UITextField) {
          add.isEnabled = sender.hasText
      }
  </code></pre>
  <p>If the required field is populated the add button is enabled, otherwise it is not.</p>
  <p>When testing on an iPad (iOS 15) after typing some text in to the text field and dismissing the keyboard, although the add button shows as active it actually wont execute the given <code>selector</code> to save the item until the keyboard is displayed again.</p>
  <p>All of the other items in the view, such as scroll wheels and segmented controls continue to work as expected when the keyboard is dismissed.</p>
  <p>Is there a known reason that dismissing the keyboard would disable the right nav button without setting its state to disabled? or that would prevent it from executing its associated action?</p>
  <p>Or have I simple set something up incorrectly?</p>
  <p>For reference I am not &quot;moving&quot; or adjusting the view or controls in the view to accommodate the keyboard.
  The App targets iOS version 12.</p>
  <p><strong>Update</strong>
  The left navigation button works as expect, it displays the previous view in the navigation stack.<br />
  The right navigation button looks as though it is responding to taps, just not executing its attached action.</p>
  <p>Why would the present or absence of the keyboard impact the right navigation button performing its associated action?</p>