Closed raykyri closed 3 years ago
The flems example in the README is not up to date with the latest library version. If you check codesandbox it works fine.
If you're referring to the oninput
and onchange
events, the CustomSelect doesn't support those attrs although onchange
probably should be. onSelect
should also pass the event property as its second paramater.
You're right! I was on an old library version too.
CustomSelect never invokes its callback when a selection item is clicked.
Example: https://flems.io/#0=N4IgZglgNgpgziAXAbVAOwIYFsZJAOgAsAXLKEAGhAGMB7NYmBvEAXwvW10QICsEqdBk2J4hcYgAJgAHTSTJAIQCuxYvQpyFASXGb5kgMLKJtLAGUYsasX0KVa+gHEATrWUAHO5IAiLjADuMC7ePhAYULQA5t6W1sQAMhAS3kkS2oxY3gBitNQmALIYmFHBcqySALxGAKraANxycrn5cEUlwfhwhLQBLSYA8mhQAJ5DACoYAEYAFACUjWhysFLJYRHRAx5MVZJgEXAwiyuSa-5BLls71ftQh8cwUofxMAAmhrSRLoty4lIAgh4PLtZAYAG4QGABRCSeZVAB80i0CkkLkeyhc8iwMxkIGQEhGsEqHgwr1eEDQUUQAGYAAweAAeAF1cRRJMhkSjJNiHOo0K53F5pJI4BAAF4wGG4hlwXGSdjszlc7kzXkaJEGZUoiBCBIwMDEGG6ehwfCGf4JACiADkfP8AEreLUKKDTKxSkBXeTrSJRVlKrX0ahQHUAaxhcMqiJma3Cvq9u2ILmUMDmAZRrDm+nTCh5qj5bNBzu1uv1hskxrQpvMlvG4201qc5idztdU3dklxCb8gTKlBzKKDIeo4dhcwRsLOvcu23k1STKbTmuVmezy652LiMBsaVsGuLCggmTgMI5IEUUBTrM7IAAChiPLBr7j7W9nyBXDAmLimS2tUeYCwV80FeYIYQArAEQHDcZl3DJAMLaDlTbDsIL-A9nm3RhXnAzIqkqapMJsN4Pi+dDiyERgGHtCAohIGFsVxa8iwPLUCVgGEWNYrVCBgWj6JvABGekGX9dduIUAIIFeYhCA9YTGTEiStSmWgXFAlx7VJCATA9ABWESlOUrkpgwEcojcZQQNwwCkK1Vg7IzJcJNXJCINvNFyWoDBGAjABHFMXBGNkIPHK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