Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

hideSubmitButton was breaking the dropdown icon #216

Open
alexsandersarmento opened this issue Aug 20, 2023 · 0 comments
Open

hideSubmitButton was breaking the dropdown icon #216

alexsandersarmento opened this issue Aug 20, 2023 · 0 comments

Comments

@alexsandersarmento
Copy link

Hi! 馃憢

Firstly, thanks for your work on this project! 馃檪

Today I used patch-package to patch react-native-multiple-select@0.5.12 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-multiple-select/lib/react-native-multi-select.js b/node_modules/react-native-multiple-select/lib/react-native-multi-select.js
index 9b7a0d7..2d8302e 100644
--- a/node_modules/react-native-multiple-select/lib/react-native-multi-select.js
+++ b/node_modules/react-native-multiple-select/lib/react-native-multi-select.js
@@ -611,7 +611,7 @@ export default class MultiSelect extends Component {
                 value={searchTerm}
                 {...textInputProps}
               />
-              {hideSubmitButton && (
+              {/* {hideSubmitButton && (
                 <TouchableOpacity onPress={this._submitSelection}>
                   <Icon
                     name="menu-down"
@@ -622,7 +622,7 @@ export default class MultiSelect extends Component {
                     ]}
                   />
                 </TouchableOpacity>
-              )}
+              )} */}
               {!hideDropdown && (
                 <Icon
                   name="arrow-left"
@@ -718,7 +718,7 @@ export default class MultiSelect extends Component {
                       {this._getSelectLabel()}
                     </Text>
                     <Icon
-                      name={hideSubmitButton ? 'menu-right' : 'menu-down'}
+                      name="menu-down"
                       style={[
                         styles.indicator,
                         styleIndicator && styleIndicator,

This issue body was partially generated by patch-package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant