现在,每当在Search上发生onBlur事件时,我都会关闭下拉菜单。(这只是一个输入标签),但我也希望它能检测到它何时点击了我的下拉菜单。如果是的话,触发其他函数。下面是我的搜索栏,它将在onBlur支柱之前调用onClickLocationSearch支柱,这不是我想要的,因为onClickLocationSearch和onBlur事件处理不同的函数。换句话说,我希望onBlur事件检查它是否单击了另一个组件。以下是他们所称的功能:
public handleClickLocatio
我希望有一个输入,不断更新的用户类型,然后失去焦点。反馈将是输入的边框。2 Amber: when typing and is in error state (Green when valid)4 Nothing: when input is pristine (not touched and empty)理想情况下,这将同时适用于iOS和安卓。
我有一个组件,它将一个对象作为支柱传递给它的子对象,以及一个更新该对象的函数。Every time the obj is updated, this logs the new }, [obj])
onUpdate(newValue) }
<Input value={obj.nested.property} onBlur={